Share » Forums » Setup & design » Use of is_empty

Use of is_empty

Use of is_empty

Tuesday 16 May 2006 5:52:02 am - 3 replies

Author Message

Kristof Coomans

Tuesday 16 May 2006 6:31:06 am

Hi Pascal

What datatype do these attributes have?

Try to use

$node.data_map.attribut_1.has_content

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Pascal France

Tuesday 16 May 2006 7:02:10 am

Thanks a lot Kristof,

it works fine.

These datatypes are textline.
What use of is_empty shoud I do ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Kristof Coomans

Tuesday 16 May 2006 11:25:46 am

You can use is_empty on the content of an attribute with the author or xml block datatype, but using has_content directly on the attribute will serve as a shortcut. So to avoid any confusion, always try to use has_content.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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

36 542 Users on board!

Forums menu