Topic: How to show Images of a Photoshare-Folder in a smarty-Template
Converted
avatar
12
Posts: 0

Posted:
21.Oct 2006 - 22:52

For an Artist I'm building a Pagesetter-Site. She wants to put images of her work in different Photoshare-Folders. These Folders should be displayed in a Pagesetter Template. Since I'm not really familiar whith smartys using postnuke-functions, it took me some time to discover this.

Put this in your Pagesetter-Template to show all Images of Folder 1.

Code

<!--[ pnmodapifunc modname=photoshare func=get_image_list folderID=1 assign=immages]-->

<!--[foreach from=$immages.images item="immage"]-->

<!--[assign var=iiid value=$immage.id]-->

<!--[$immage.title]-->:<img src="<!--[ pnmodurl modname=photoshare func=viewimage iid=$iiid ]-->"><br />

<!--[/foreach]-->
To see which variables you also can use, put the debug-tag after this code in the template.

Code

<!--[pndebug]-->