Share » Forums » General » unpublish event in eZ 3.3 missing?

unpublish event in eZ 3.3 missing?

unpublish event in eZ 3.3 missing?

Wednesday 04 February 2004 12:43:01 am - 7 replies

Author Message

James Packham

Wednesday 04 February 2004 5:21:36 am

I haven't got it either. ez 3.3-2

Regards,

~James~

Sebastian Sprenger

Wednesday 04 February 2004 5:55:40 am

Hm, thanks, seems I have to create my own event.

Sebastian

Kjell Knudsen

Thursday 11 March 2004 4:15:36 am

would my suggested validate feature help on this?
http://www.ez.no/community/forum/suggestions/improvement_to_workflow_logic_object_validation_feature

I'm thinking that then one won't need publish/unpublish.

-kjell

Kjell Knudsen
http://www.icbl.org

Bruce Morrison

Thursday 11 March 2004 7:21:41 pm

There looks to be an unpublish cronjob "cronjobs/unpublish.php"

and the content.ini file has the following items

[UnpublishSettings]
RootNodeList[]
ClassList[]

Looking at the code of cronjobs/unpublish.php it appears that you set the root node(s) where the items you want to unpublish reside using RootNodeList[] and the classes you want to process with ClassList[]

The items you want to be able to unpublish need to have a date attribute with the identifier "unpublish_date" - this is checked against the current date.

I haven't tried this only looked at the code.

Hope this helps
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Iain MacLean

Tuesday 16 March 2004 2:21:27 am

Hi

I've tried what Bruce has suggested and it seems to work OK. You have to add a datetime or date field attribute with the identifier 'unpublish_date' to the classes you want to use this for. I wasn't able to get the unpublish event working by setting up a workflow to unpublish items.

Cheers
Iain

Bjarte Lunde

Wednesday 06 April 2005 5:46:58 am

I've added the unpublish_date attribute to the Article class and added the lines to content.ini.append in the siteaccess settings.

But when i run the cronjob i get this error:

Running cronjobs/unpublish.php

Fatal error: [] operator not supported for strings in /opt/ezpublish/sites/mysite/lib/ezutils/classes/ezini.php on line 638

Fatal error: eZ publish did not finish its request

John Smith

Monday 11 April 2005 5:56:08 am

I tried the same concept on ez publish 3.5.0, working very fine.

What when i implement the same concept on 3.5.1. it is giving me errors.

Moreover the code given below is from unpublish.php in cronjobs folder.

$articleNodeArray =& $rootNode->subTree( array( 'ClassFilterType' => 'include',
'ClassFilterArray' => $unpublishClasses ) );

is not returning any thing.

I think it is bug in 3.5.1

Can anybody help in this community.

cheers

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

36 542 Users on board!

Forums menu