![]() |
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 |
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.