1
HTML & templates / in list,how to display the file if %item-name% is a jpg/gif?
« on: October 18, 2005, 05:03:05 AM »
in list,how to display the file if file is a jpg/gif?
in Template,[file] section,default code is
in Template,[file] section,default code is
Code: [Select]
[file]
<tr><td class=row>%new% <a href="%item-url%"><img align=top src="/~img_file"> %item-name%</a>%comment%<td class="row right">%item-size%<td class="row right">%item-modified%<td class="row right">%item-dl-count%
i want to check %item-name%,if the file is a jpg or gif,then display the file instead of “/~img_file”.how to write the [file] section code?