Forums / Developer / Checking if value is selected for an object relations attribute

Checking if value is selected for an object relations attribute

Author Message

Kedar Deshpande

Thursday 11 February 2010 2:17:54 pm

For a object relations attribute I tried:

{if $node.data_map.selections.content.has_content}
true
{else}
false
{/if}

...but this doesnt seem to be returning the correct value. Is there a better way of checking to see if anything was selected for the object relations attribute?

thanks.

Kedar Deshpande

Thursday 11 February 2010 2:47:11 pm

Apologies, its working now. The test should be

$node.data_map.selections.has_content

not

$node.data_map.selections.content.has_content

thanks.