This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Checking if value is selected for an...
expandshrink

Checking if value is selected for an object relations attribute

Checking if value is selected for an object relations attribute

Thursday 11 February 2010 11:17:54 pm - 1 reply

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.

Thursday 11 February 2010 11: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.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from