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!
|