Gallery get album cover in foreach!
Posted: Mon Aug 17, 2020 5:40 pm
Hello, I have this template:
It is possible to get album cover?
Code: Select all
{if $images}
{foreach from=$images item=image}
{if $image@first}
{$src={$image->file}}
{$alt={$image->titlename}}
{/if}
{if $image->[b]iscover[/b]}
{$src={$image->file}}
{$alt={$image->titlename}}
{/if}
{/foreach}
<img src="{$src}" alt="{$alt}">
{/if}