Forums / General / unpublish cronjob ezp4.06

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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

7x | https://se7enx.com/
Brookins Consulting | https://brookinsconsulting.com/
Certified | http://web.archive.org/web/201012...th.ez.no/certification/verify/380350
Solutions | https://projects.exponential.earth/users/community/brookins-consulting
eZpedia community documentation project | http://ezpedia.se7enx.com