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!
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="<a href=".file_url.?__xt_download=1"><img src=".file_url." alt="*" style="max-width:48px"/><br />.file_name_base_parsed.</a><br />" per_page="10" />
Copy code