Forums / Setup & design / Standard data type attributes

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Standard data type attributes

Author Message

Stephen Paschall

Monday 13 October 2003 9:54:36 am

It would be nice if there was a list somewhere of the attributes of the standard data types that can be accessed through the template language. For example:

I added an ezimage element, id'ed by 'thumbnail', to the "content/file" class. If there is an image associated with a particular file, I'd like to display a particular section of my template; if not, I want to prevent that section from displaying and adding excess whitespace. I tried

...show=$node.object.data_map.thumbnail.filename...
...show=$node.object.data_map.thumbnail.original_filename...

and several variations on the above (e.g., not($node.object.data_map.thumbnail.filename|null()) ) but nothing appears to work. Granted, I'm not sure I fully understand how the object model in the templates relates to the PHP object model, but neither is there a great reference to this, and what information there was (in the old SDK reference) is unavailable now. Help!

David Syers

Monday 13 October 2003 10:33:30 am

If you are unsure of any attributes use "|attribute(show)"

ie.

{$node.object.data_map.thumbnail|attribute(show)}

will show you all of the values that are available for this object.