I know, the Album-Modul isn't supported anymore. My question is more about how to access entities (?) in the templates.
Example:
I'd like to show all thumbnails from all album-galleries, so I tried something like this (with the separate_thumbnails-template):
Code: Select all
{if !$album}
{if $returnlink}<br /><a href="{$returnlink}">Back</a>{/if}
<table>
{foreach from=$albums item=album}
<tr style="height:100px;vertical-align:middle">
<td style="border:1px solid #ECECEC;width:100px;text-align:center">
<a href="{$album->link}"><img src="{$album->thumbnail}" alt="{$album->name|escape:'html'}" /></a>
</td>
<td style="border:none;width:500px;text-align:left">
{$album->name} <em>({$album->picturecount} images)</em><br />
{$album->comment}
{foreach from=$album item=pictures}
<table>
{foreach from=$pictures item=picturesrow}
<tr style="height:100px;vertical-align:middle">
{foreach from=$picturesrow item=onepicture}
<td style="border:1px solid #ECECEC;width:100px;text-align:center">
<a href="{$onepicture->link}"> <img src="{$onepicture->thumbnail}" alt="{$onepicture->thumbnail}" /> </a>
</td>
{if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
{/foreach}
</tr>
{/foreach}
</table>
{/foreach}
</table>
...
Thank you for any hints/help!
michael