I am currently developing a new element for my site, but have reached a bit of a dead-end.
I have created a custom link select box ($weapons_taught) using the options:
1|short staff
2|long pole
3|sword
4|halberd
etc...but on the detail_link.html page I wanted to display images of these weapons instead of the words (because some people might not know what a shinai is etc, but will recognise it by sight). I started by thinking I could integrate it with the smarty tags, using:
<%if $weapons_taught == 1 %> <img src=".../images/weapons/short_staff.jpg" /> <%/if%>
<%if $weapons_taught == 2 %> <img src=".../images/weapons/long_pole.jpg" /> <%/if%>
<%if $weapons_taught == 3 %> <img src=".../images/weapons/sword.jpg" /> <%/if%>
etc...But this did not work. Is there any simple code I could add to the detail_link.html page to display an image instead of the text value?
P.S, it's a martial arts website...


LinkBack URL
About LinkBacks
