Moving articles in EZ without changing published date

Author Message

Tonny Laursen

Wednesday 07 January 2004 4:25:57 am

We have a intranet where we want to move some of the articles we have wrote in 2003 to a folder called 2003. Is it possible to move the articles without changing the published date?

Tonny

EZ3.2-3

Balazs Halasy

Wednesday 07 January 2004 4:54:43 am

To change the location of a content object (in your case, articles), you have to edit it and re-publish it. When re-publishing, the object's "published" attribute is not changed. It is the "modified" attribute that is updated (which is set to the current date-time). This means that you can move your articles safely as long as you only display the "published" value in the template. PS: A bulk-move would be easier to do directly from within the database since it is a bit tedious to move one article at the time using the admin interface. Hint: look in the "ezcontentobject_tree" table. It's all there.. :-)

Balazs

Trond Åge Kvalø

Wednesday 24 March 2004 1:43:36 am

Balasz, excuse me if I sound a bit rude, but this forum would have been much more useful if you, (i.e. the eZ crew), could take the extra two minutes to explain how to actually <b>do</b> a bulk move in the database instead of just giving vague hints like this.

For us it would probably take several hours to figure out which sql statements to send to the mysql database to accomplish this, even with the hint.

And this is not the only thread where this has happened, and yes I know that support is what makes your wheels go around, but if you're posting on the forum anyway I don't see a problem in explaining things in more detail.

So in the future, please take the time be a bit more elaborate.

Best Regards
trondåge

trondåge

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.