Matrix based thumbnail theme
dotnature
Joined: 2005-10-26
Posts: 224 |
Posted: Wed, 2006-03-15 22:29 | |||||
Thanks to mincel from Carbon theme I used some of his code to create album thumbnails for the standard matrix theme, It basically displays up to 40 thumbnails per album under the photo. I don't have time to customize it to include the parameters in the backend ..maybe one day, or maybe someone else can. This has only been tested on gallery 2.1 rc1 but should work with other versions, and using the square thumbsnails module makes it look better. [img]http://gallery.menalto.com/files/thumby.JPG[/img] Some basic editing can be done to the following: To edit the # of thumbs it displays per album change default:40 on line 8 of local/navigatorMicroThumbs.tpl to whatever # you want.(default is 40) To change where the thumbnails show up (if want them on top or side) change {g->theme include="navigatorMicroThumbs.tpl"} to wherever you want in local/photo.tpl To style the selected thumb edit .selecthumb in your theme.css (default is red micro-dots) To change how many thumbs per row (default is 10) change {if ($columnIndex == 10)} in local/navigatorMicroThumbs.tpl To change the size of the thumbs change "..maxSize=35" in local/navigatorMicroThumbs.tpl (line 27)
|
||||||
Posts: 48
Can you post your code as an example.
I think I am following but wanting to make sure.
*What is your code for this?
Thanks for the post. This is exactly what I am wanting to do.
Thanks,
Posts: 224
The code is above in matrixthumb.zip, you can just install that as a theme . To change where the thumbs show up open up the local/photo.tpl and you will see {g->theme include="navigatorMicroThumbs.tpl"} (this is the code that calls and displays the thumbnails) under the block that displays the actual photo. To have it above the photo just cut/paste it above the photo code. To have it on the side its most likely you will have to add some table tags (td and /td) withing the photo table block and cut/past it into there. I dont currently use this and its been ahwile since this was posted so hope that helps.
Posts: 18
Thanks for posting the theme and the tips! This was exactly what I was looking for.