| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Lists all images in a directory. | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 ![]()
__________________
ex x-cart guru ![]() |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|