Share » Forums » Setup & design » Timing of an article

Timing of an article

Timing of an article

Wednesday 22 February 2006 11:37:37 pm - 11 replies

Modified on Wednesday 22 February 2006 11:44:17 pm by Bjarte Berntsen

Author Message

Łukasz Serwatka

Thursday 23 February 2006 12:00:22 am

Hi Bjarte,

Welcome to eZ publish Community.

eZ publish has that functionality. You can use "Wait until date" workflow if you want to delay publishing of article.

http://ez.no/doc/ez_publish/technical_manual/3_6/reference/workflow_events/wait_until_date

You can use unpublish.php cronjob script and configure settings for unpublishing process (object will be remove) in content.ini file or you can use hide.php cronjob script and hide object instead of removing (content.ini).

Basically your article class will have 2 attributes one with start date and one with unpublish date. So you can set range 1.08.06 to 24.08.06.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Bjarte Berntsen

Thursday 23 February 2006 12:07:50 am

Thank's for welcoming me!

How can I make this easy for the users that needs to have an article like this?

Because the users / authors won't do it, if it's too difficult.

Łukasz Serwatka

Thursday 23 February 2006 12:11:47 am

You or administrator need to configure system, cronjob, ini settings, and extend Article class with new attributes. Author will only set dates during normal publishing process that's all. Rest will be handle by eZ publish.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Bjarte Berntsen

Thursday 23 February 2006 12:23:15 am

Allrighty then!

I've been testing out another Publisher lately, and you could choose "advanced" and type in start-end date. That's why I am wondering about it.

Siniša Šehović

Tuesday 07 March 2006 12:38:24 am

Hi Lukasz

could you please explain in detail how to use hide.php in cronjob to hide article after specific date?

Thanx

S.

---
If at first you don't succeed, look in the trash for the instructions.

Kristof Coomans

Tuesday 07 March 2006 12:53:13 am

You'll have to configure the hide cronjob with INI settings. In content.ini, you will find:

[HideSettings]
# Example:
#
# RootNodeList[]
# RootNodeList[]=2
# HideDateAttributeList[]
# HideDateAttributeList[article]=hide_date
#
# List of root nodes where nodes can be hidden.
RootNodeList[]
# Class attribute map, describing which date/time fields to use.
# The systems uses the class identifier to determine which classes to hide in the cronjob.
HideDateAttributeList[]

The specified attributes need to have the date or datetime datatype.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Siniša Šehović

Wednesday 08 March 2006 2:59:12 am

Hi Kristof

I have changed ini but nothing happend.
Article is still shown.

If I run runcronjob.php by hand nothing happend.

How could I use workflow trigger to hide article?

S.

---
If at first you don't succeed, look in the trash for the instructions.

Kristof Coomans

Wednesday 08 March 2006 5:08:25 am

Did you use the RootNodeList[] setting?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Siniša Šehović

Thursday 09 March 2006 12:41:35 am

Hi Kristof

My mistake, date in field was wrong :-)

Now it works as it should.

Thanx for help!

S.

---
If at first you don't succeed, look in the trash for the instructions.

Saravanan .R

Friday 07 April 2006 11:16:16 pm

Hi Sinisa,

I am new to EZ. I have product node id 62 i have to set this node hide for start date and end date in content.ini. Please guide me to do.

Where to set and how can i set the node for more than 1 node too.

Thanks

Saravanan .R

Monday 10 April 2006 3:11:36 am

Hi Serwa,

I have set the hide in CONTENT.ini still products shows. How could i execute the file hide.php in cronjobs.

could u guide me.

Thanks

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

36 542 Users on board!

Forums menu