Forums / General / unpublish cronjob ezp4.06

unpublish cronjob ezp4.06

Author Message

Dirk Bensel

Sunday 10 October 2010 2:11:29 pm

Hi,
the cronjob unpublish dosn't remove contentobjects.
i've set in content.ini.append.php
[UnpublishSettings]
RootNodeList[]=9237 (standard folder, section_id = 6)
ClassList[]=44 (class with ezdate attribute 'unpublish_date')

cronjobs/unpublish.php
$articleNodeArray = $rootNode->subTree( array( 'ClassFilterType' => 'include',
'ClassFilterArray' => $unpublishClasses ) );

this part returns an empty array.
I tried $rootNode->children() for testing, but it also returns an empty array.
The folder isn't empty.

Has anybody got a clue???

---
ROCK ON
Dirk

Dirk Bensel

Monday 11 October 2010 1:12:27 am

Got it:

http://ezpedia.org/en/snippet/php_snippet_logging_in_a_specific_user

---
ROCK ON
Dirk

Heath

Monday 11 October 2010 4:19:29 pm

Hello Dirk,

Congratulations on solving your own issues. Please remember to mark your thread as solved with the checkbox above.

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org