De aanroep vanuit een CGBlog artikel is:
Code: Select all
{global_content name='fotoalbum' album="Winter1617/Kajuitramen" foto="Kajuitramen - 01"}
Code: Select all
{* clean up parameters *}
{assign var='album_no_spaces' value=str_replace(' ', '%20', {$gcb_params.album})}
{assign var='foto_no_spaces' value=str_replace(' ', '%20', {$gcb_params.foto})}
<h4>Meer foto's in het album</h4>
{assign var='files' value="uploads/images/Gallery/{$album_no_spaces}/*.jpg"|glob}
{if count($files)}
<div class="floatbox" data-fb-options="doSlideshow:true group:cgblog caption:href">
<a href="uploads/images/Gallery/{$album_no_spaces}/{$foto_no_spaces}.jpg">{CGSmartImage src="uploads/images/Gallery/{$album_no_spaces}/{$foto_no_spaces}.jpg" width="150"}</a>
{foreach from=$files item='file'}
{if !$file|contains:"thumb_"}
<a href="{CGSmartImage src=$file notag=1 noembed=1}"></a>
{/if}
{/foreach}
</div>
{/if}