* Aash I want to include and show photo randomly from a folder. How? And i also want to make a list of photos separately with preview!
2014-07-08 18:39 · (0)
* Graham * Aash  
A random image include can be as simple as
<xt:include file="/images/*" />
as xtgem automatically adds in the img tag
a list of images with preview can be done with a xt filelist function something like
<xt:filelist sort_type="name" sort_dir="desc" folder="/images" template="&lt;a href=&quot;.file_url.?__xt_download=1&quot;&gt;&lt;img src=&quot;.file_url.&quot; alt=&quot;*&quot; style=&quot;max-width:48px&quot;/&gt;&lt;br /&gt;.file_name_base_parsed.&lt;/a&gt;&lt;br /&gt;" per_page="10" />
Copy code
2014-07-08 20:08 (edited 2014-07-08 20:09 by Graham ) · (0)
* pickhoi * Graham thank Graham
2014-11-09 11:31 · (0)

Online: Guests: 1