Module Album

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
klompie
New Member
New Member
Posts: 3
Joined: Sat Sep 12, 2009 6:08 pm

Module Album

Post by klompie »

I am creating a template to get the album module working with TripTracker

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>

Here i  am generating a viewer for each album and then i want to add all pictures that are in that album to the viewer.
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}
Post Reply

Return to “Modules/Add-Ons”