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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.