Share » Forums » General » Check if attribute has content or not.

Check if attribute has content or not.

Check if attribute has content or not.

Thursday 21 September 2006 4:44:12 am - 1 reply

Author Message

Fabio Carissimi

Thursday 21 September 2006 6:09:13 am

I think you can check the value of 'has_content' for an attribute.

$node.object.data_map.my_attribute.has_content has the value 'true' or 'false'
according to the response of the question :
does my attribute named 'my_attribute' has content ?

For me, it works fine and I think it works for any kind of datatypes.

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

36 542 Users on board!

Forums menu