in list,how to display the file if file is a jpg/gif?
in Template,[file] section,default code is
[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?