Log in | Register | Lost password

Bottom
How to show Images of a Photoshare-Folder in a smarty-Template
  • Posted: 21.10.2006, 22:52
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    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]-->

Template courtesy of Designs By Darren.