Friday 28 May 2010 10:39:25 am
You are missing the fact that the publication date is not an attribute of the object ;-) In short: every content object, as available in the templates, is made up of:
- its attributes, as defined in the content class
- some extra metadata
For 1, you access them using $obj.data_map, and you can use them with attribute_view_gui For 2, you access them directly: $obj.published, $obj.name etc... Your best friend is the online doc: look at http://ez.no/doc/ez_publish/technical_manual/4_x/reference/objects/ezcontentobject - for every member of $obj listed the datatype is clearly indicated (note: the manual page is not very clear in that it uses the term "attribute" to denote two different things; we have the same problem for newcomers trying to distinguish a 'content object' from a 'template object')
Principal Consultant International Business
Member of the Community Project Board
|