List same level albums' thumbnails

codicelibero

Joined: 2007-03-12
Posts: 8
Posted: Thu, 2009-09-24 11:15

Hi,
I'm trying to configure gallery so that I can see same-level galleries thumbnails on a block.

eg:
Gallery X
- sub-gallery-1

- sub-gallery-2
--sub-sub-gallery-21
--sub-sub-gallery-22
--sub-sub-gallery-23

- sub-gallery-3

- sub-gallery-4

- sub-gallery-5

While I see an image from -sub-gallery-1 I want Gallery shows me
- sub-gallery-1
- sub-gallery-2
- sub-gallery-3
- sub-gallery-4
- sub-gallery-5
thumbnails into a block on the sidebar

and then, while I see a --sub-sub-gallery-22 I want Gallery show me
--sub-sub-gallery-21
--sub-sub-gallery-22
--sub-sub-gallery-23
thumbnails into a block on the sidebar

something similar to what I'm looking for is on http://www.repubblica.it/2007/03/gallerie/motori/monociclo-honda/3.html

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2009-09-24 12:38

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:

    <tr>
        <td colspan="2" class="gcBackground2" style="padding-bottom:5px">
            {g->theme include="navigatorMicroAlbumThumbs.tpl"}
        </td>
    </tr>

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
codicelibero

Joined: 2007-03-12
Posts: 8
Posted: Thu, 2009-09-24 13:38

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?)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2009-09-24 15:02
 
codicelibero

Joined: 2007-03-12
Posts: 8
Posted: Thu, 2009-09-24 15:33

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2009-09-24 15:40

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

 
codicelibero

Joined: 2007-03-12
Posts: 8
Posted: Thu, 2009-09-24 16:02

I got it!

thank you! :)