I try the functionality unpublish by date in article class, the workflow unpublish the articles but I don't find any unpublishe article in my trash, I missing my unpublished articles?
Hi, i try to use article publish and unpublish in site but nothing is working, how to configurate workflows and trigers what everything work, mayby have some examples how to creat workflows to article publish and unpublish, i creat some workflows and see in workflows proceses that som events is but notfing work, mayby some problems with cron jobs.
Unpublish action is done by cronjob and it is not related to eZ Publish workflow system. First you need to add new date or datetime attribute with identifier "unpublish_date" (atttribute have to have exactly the same atrribute ID) to your content class. Fill up correct date in object edit mode then store it.
In content.ini.append.php set
[UnpublishSettings]
# Where 2 is top level of content subtree
RootNodeList[]=2
# Class identifiers
ClassList[]=article
In cronjob.ini.append.php add
[CronjobPart-unpublish]
Scripts[]=unpublish.php
Clear the INI cache and execute cronjob script as:
Yes all right! but the question is, where ez put the unpublished articles? in the trash? i don't see any unpublished articles in my trash after I run cronjobs. I use ez 3.10.0.
My answer was on Martynas's question. Yes, eZ Publish should put unpublished objects into trash. It looks like an issue in eZ Publish 3.10. Could you post an issue about it?