Some functions on this portal require JavaScript but your browser does not support it or it has been disabled.
Skip to main content
Friday 25 June 2010 10:29:53 am - 2 replies
Vincent Tabary
Friday 25 June 2010 11:43:09 am
Hi Erik !
You should look at this function :
eZContentFunctions::updateAndPublishObject()
I think it is what you are looking for.
About your function, you have updated the attributes from the $contentObject. You have to update the attributes directly from the $nextVersion
Look at this source on line 308
Vinz http://vincent.tabary.me
Erik Weinmaster
Monday 28 June 2010 7:23:19 am
Thanks! I updated the kernel file eZContentFunctions.php from 4.2 to 4.3 and used the updateAndPublishObject. Works great.
You must be logged in to post messages in this topic!