Hi Everybody.
In my site I like to have on my frontpage the albums listed as titles and subalbums showing a thumbnail, this way:
Album 1
[Thumbnail Sub album 1]
- Sub album 1
[Thumbnail Sub album 2]
- Sub album 2
Album 2
[Thumbnail Sub album 3]
- Sub album 3
Album 3
[Thumbnail Sub album 4]
- Sub album 4
[Thumbnail Sub album 5]
- Sub album 5
How can i do this on my template?
Thanks for your help.

Byron H.
Posts: 27300
I would use the classic theme. It has a similar layout.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
Hi and thanks for your answer.
Now I'm using it as on the theme, but i like to show only the first subalbums, not the sub--subalbums.
Can this be done?
Thanks.
Byron H.
Posts: 27300
you could edit album.php to check the depth of the for each loop and don't show the link.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
Thanks for your help.
It worked good
:D
Byron H.
Posts: 27300
Can you show others what you did to assist them if they want to do the same thing.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
Of course.
On album.tpl before <div class="gallery-subalbum"> i added: {if $node.depth == 1}
And after the </div> i close the if {/if}
Something like:
{foreach from=$theme.tree[$child.id] item=node} {if $node.depth == 1} <div class="gallery-subalbum"> <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$node.id`"}" class='gsc_thumb_link'> {if isset($theme.treeItems[$node.id].thumbnail)} {g->image item=$theme.treeItems[$node.id] image=$theme.treeItems[$node.id].thumbnail maxSize=150 title=$theme.treeItems[$node.id].title} {else} {g->text text="no thumbnail"} {/if} </a><br /> <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$node.id`"}"> {$theme.treeItems[$node.id].title|default:$theme.treeItems[$node.id].pathComponent|markup} {if isset($theme.treeItems[$node.id].count)} ({$theme.treeItems[$node.id].count}) {else} (0) {/if} </a> </div> {/if} {/foreach}Byron H.