Forums / General / How do I check if an image has been uplaoded?

How do I check if an image has been uplaoded?

Author Message

Edward Eliot

Wednesday 29 September 2004 6:37:13 am

I want to use a section block to determine if an image has been uplaoded. I am thinking along the lines of:

{section show=$node.object.data_map.banner|ne('')}
	<div id="banner">
		{attribute_view_gui attribute=$node.object.data_map.banner image_class=original}
	</div>
{/section}

I am not sure this is right though. Any ideas anyone?

Frederik Holljen

Wednesday 29 September 2004 7:28:35 am

Use:

{section show=$node.object.data_map.banner.content}
 {* Your stuff here *}
{/section}

Edward Eliot

Tuesday 12 October 2004 1:33:38 am

This doesn't seem to work. I have tried this and a number of variants with no success.

I have tried:

{section show=$node.object.data_map.banner.content}
{section show=$node.object.data_map.banner.content|ne('')}
{section show=$node.object.data_map.banner}
{section show=$node.object.data_map.banner|ne('')}

Any ideas?