eZ Community » Forums » General » How to publish news with old dates?
expandshrink

How to publish news with old dates?

How to publish news with old dates?

Thursday 19 January 2012 9:32:35 am - 1 reply

Need to transfer the content from the old static site
It is necessary to publish news on a new site that have the old date.
How to publish news with old dates?

Thursday 19 January 2012 11:18:49 am

Hi Maxim,

there are two ways you can go about this.

1) Update ezcontentobject.published and ezcontentobject_version.created/modified timestamps in the database for each of the objects

2) Use the "Hide until date" extension, similar to "Wait until date" workflow process available in eZ Publish.

http://www.mugo.ca/Products/Hide-Until-Date

Hide until date workflow takes the date and time from one of the attributes of your object and sets the publishing date to that value. If the date is in the future, it hides the object (cronjob reveals it when the time is right), and if the date is in the past it simply changes for you system published date.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from