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:
Byron H.