I have the following code:
Code: Select all
{* Include JS file. *}
<__script__ type="text/javascript" src="http://slideshow.triptracker.net/slide.js"></__script>
{* Generate JS Albums *}
<__script__ type="text/javascript">
<!--
{foreach from=$albums item=cur_album}
var viewer{$cur_album->id} = new PhotoViewer();
viewer{$cur_album->id}.disableEmailLink();
viewer{$cur_album->id}.disablePhotoLink();
{foreach from={$pictures} item=onepicture}
viewer{$cur_album->id}.add('{$onepicture->picture}');
{/foreach}
{/foreach}
//--></__script>
After this the album list is generated and clicking on a album opens up that albums viewer.
My problem now is to add the pictures to the viewers... how to do this?
So how to change this piece to add all the pictures in album $cur_album->id
Code: Select all
{foreach from={$pictures} item=onepicture}
viewer{$cur_album->id}.add('{$onepicture->picture}');
{/foreach}
