album.tpl show items from a specific album

damouille

Joined: 2009-10-02
Posts: 2
Posted: Fri, 2009-10-02 07:18

Hi,

I would like to create a menu in my album.tpl that dipslays links to items from a specific album.

I didn't find a way to match with an album id like {foreach from=$theme.children[4436] item=child}build my menu here{/foreach}

Is it possible to load a specific album directly in album.tpl or do I need to create a function in theme.inc or is there a module doing that stuff?

Thanks in advance for your help.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2009-10-02 13:27

Have you looked at the peer list?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
damouille

Joined: 2009-10-02
Posts: 2
Posted: Sat, 2009-10-03 05:27

Hi floridave and thanks for your answer.

The peer list looks interesting but when I specify an item the block shows nothing ex:

{g->block type=core.PeerList item=4436} -> this shows nothing

{g->block type=core.PeerList} -> This is relative to the current item, not what i'm looking for.

What should be the value for item. I tryed 4436 because it was the $theme.item.id of the targeted album.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-10-03 05:39

Well according to the docs:
http://codex.gallery2.org/Gallery2:Themes:Reference:Blocks
it should have worked.

I might have to dig to help out.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team