List same level albums' thumbnails
codicelibero
Joined: 2007-03-12
Posts: 8 |
Posted: Thu, 2009-09-24 11:15 |
Hi, eg: - sub-gallery-2 - sub-gallery-3 - sub-gallery-4 - sub-gallery-5 While I see an image from -sub-gallery-1 I want Gallery shows me and then, while I see a --sub-sub-gallery-22 I want Gallery show me something similar to what I'm looking for is on http://www.repubblica.it/2007/03/gallerie/motori/monociclo-honda/3.html |
|
Posts: 8339
Piece of cake.
Copy themes/carbon/templates/navigatorMicroThumbs.tpl to themes/your theme/templates/local/navigatorMicroAlbumThumbs.tpl
change line 25 from:
{if (!$peer.canContainChildren && $peer.entityType != 'GalleryLinkItem')}
to:
{if ($peer.canContainChildren && $peer.entityType != 'GalleryLinkItem')}
remove line 49:
{assign var="columnIndex" value=$columnIndex+1}
now to themes/your theme/templates/local/sidebar.tpl <- copy the original here.
add a new row to the table:
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8
Ok, it works! thanks!
I need now to add some variables (eg: title)
how can I do that? (= where can I get a list of variable?)
Posts: 8339
{g->text text=$peer.title}
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8
well
I tried to add what you provided me:
{g->theme include="navigatorMicroAlbumThumbs.tpl" text=$peer.title}
but I guess this is not the right way to give each Album its title
Posts: 8339
nope.
read through navigatorMicroAlbumThumbs.tpl, it should be easy to spot a good place foreach $peer's title. <- a little hint ;)
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8
I got it!
thank you!