Friday 10 July 2009 11:21:49 am
I did the same for 'version.created', 'version.modified', 'object.modified' and 'object.published'.
change initial version "created"
this changes
initialfetched.created
change initial version "modified"
this changes
initialfetched.modified
change current version "created"
changes
$node.object.versions[0].created (that seems wrong)
$node.object.current.created
change current version "modified"
changes
$node.object.versions[0].modified (that seems wrong)
$node.object.current.modified
change object "created"
changes
$node.object.created
change object "published"
changes
$node.object. published
So again, $node.object.* seems to be kept in sync using php, and $node.object.versions[0] seems wrong. That doesnt really answer my original question :-) But I know a bit more now: To change $node.creator, I have to change $node.object.current.creator To change $node.object.owner, I can just set it in SQL. Common sense tells me to update the "creator" of the first version as well. To change $node.object.modified, I can just set it in SQL. Common sense tells me to update the "modified" of the current version as well. .. and $node.object.published i can apparently just set using SQL. Common sense tells me to update the "modified" of the first version as well.
And
* 'sort_by',array('modified',false())
* 'sort_by',array('published',false()) will most likely sort by $object.modified and $object.published, allthough i havent checked that.
$2c, *-pike
---------------
The class eZContentObjectTreeNode does.
|