Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Lists all images in a directory.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-15-2003, 11:37 AM
 
John7 John7 is offline
 

Senior Member
  
Join Date: Jan 2003
Posts: 136
 

Default 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
Reply With Quote
  #2  
Old 09-15-2003, 03:11 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020