X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Lists all images in a directory. (https://forum.x-cart.com/showthread.php?t=4358)

John7 09-15-2003 11:37 AM

Lists all images in a directory.
 
What would the smarty code be to lists all images in a certain directory.

I have a php script to do this, but I would like to use smarty so I can put the code in a tpl file.

Is there a simple smarty command to view all images in a certain folder?


Thanks,

John7

funkydunk 09-15-2003 03:11 PM

Not as far as I am aware.

You could get the php script to add the file name to an array and then use a section loop to loop through and list them in the template.

{section name=num loop=$images}
{$images[num].imagename}
{/section}

or something like that :)


All times are GMT -8. The time now is 09:54 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.