Tuesday 29 July 2003 5:42:11 am
Simple noobie question: "I have an optional image field in my content class. I know how to display the image on the page using code like this: <img src=/{$node.data_map.myimage.content[reference].full_path}> How do I write a conditional statement that only outputs this line if the 'myimage' data item exists for the currently viewed node?" I've tried this one, unsuccesfully:
{let ImageURL=$node.data_map.myimage.content[reference].full_path}
{section show=not(eq($ImageURL, ""))}
<img src=/{$ImageURL}> {/section}
|