Lifecycle : Expiration of articles that have been inserted into the system.. howto..

Author Message

Jørgen Skogstad

Sunday 27 April 2003 6:16:03 am

Kindest ..

I think I have heard someone say that you can apply lifecycle(s) to the EzPublish v3 system. What I am looking for is that my site does not show articles older than 30 (or any other given numer) days ..

How can this be achieved?? Wasn't there a cronjob that needed to be applied in the system... and the data is not deleted from the database I hope. I will have to retain all data, but not show things that are older than one or several dates. This should also be able to set within each article.

.. how can this be achieved??

Would love to get some feedback!

Kindest,
Jørgen Skogstad

Scot Wilcoxon

Sunday 27 April 2003 9:31:21 pm

I don't know if there is anything built in, but the SQL to test the age and turn off the "ispublished" flag in table ezcontentobject is simple. I don't know what values the "status" field accepts.

But turning off "ispublished" may make it a little difficult to identify what are drafts which aren't approved for publication yet.

Tony Wood

Monday 28 April 2003 12:31:23 am

Try using the workflow system, it has a publish and unpublish feature.
Hopefully eZ will write an HOWTO.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Jørgen Skogstad

Wednesday 30 April 2003 2:23:02 pm

Ah! Good point .. not tried that yet. Perhaps one then could apply a 10-day workflow with an unpublish at the end .. of sorts .. if that's what you wanted with this article .. and with others .. 20-day .. 40-day .. 100-day.. etc??

You tried this??

This should be documented by Ez. These are vital parts of any cms system .. and this is really .. well; essential. The guys should document these things.. and provide howto's ..

Kindest,
Jørgen Skogstad

Tony Wood

Thursday 01 May 2003 2:40:01 am

>>unpublish
Not yet, although its on my R&D list... :)

Your right there a load of things you learn through putting the time in. Most users post this new learning to contributions page.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Jørgen Skogstad

Thursday 01 May 2003 3:06:19 am

I know! Heh .. trying to figure these things out.. I have to try to migrate 10 sites under the one Ez install (v3) .. and some of those site have to have a lifecycle attached to certain article types!

Hehe .. this should be pretty easy to do if one had at least all documented features! ;)

.. I also remember reading about some types of shell scripts to "unpublish" articles from crontab, but never seen any details on this..

If you get some thinigs done with this lifecycle thing please yell out man ... hehe .. I will sure as /&"# do likewise!

Keep it up!

Kindest,
jØRGEn!:.

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