eZ Community » Forums » General » unpublish cronjob ezp4.06
expandshrink

unpublish cronjob ezp4.06

unpublish cronjob ezp4.06

Sunday 10 October 2010 11:11:29 pm - 2 replies

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???

Monday 11 October 2010 10:12:27 am

Got it:

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

Tuesday 12 October 2010 1:19:29 am

Hello Dirk,

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

Cheers,

Heath

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from