Thursday 04 August 2005 3:48:05 am
Jan,
cronjobs should be in place, your content class must have a datefield named 'unpublish_date' and the content.ini must have two particular values set. Both the RootNodeList[] and ClassList[] arrays in content.ini must be defined for it to work. So, you may need to add some settings to your <siteAccess_admin>/content.ini[.append][.php] as follows...
[UnpublishSettings]
RootNodeList[]=2
ClassList[] ClassList[]=2
Here Articles (class ID 2) are set as a potential unpublish content class, starting at the root of the site ( node 2).
Have a look at the code in cronjobs/unpublish.php (that code refers to 'articleNodeArray' but it works not only on Articles but also for other content classes as long as they have an 'unpublish_date' field of type Date).
NB. that script removes the content rather than just a hide, so look in the Trash to recover it. If you have not setup cronjobs, just run the command
php -C runcronjobs.php -s siteaccess from the root of your EZP installation. Where siteaccess above is the siteacces which contains the content.ini file with the unpublish setup.
Have a look at http://ez.no/products/ez_publish_cms/documentation/development/extensions/workflow_events/unpublish For the start/publish date you need to create a workflow that is triggered by a wait for date event.
The Web Application Service Provider
|