Timing of an article

Author Message

Bjarte Berntsen

Wednesday 22 February 2006 11:37:37 pm

Hello!

Since this is my first post, let me just say "hi" to all of you!

I am just wondering about this:

If an author wants to publish an article, that should only be visible to the public from let's say 1.08.06 to 24.08.06. Is that possible, and how?

I just installed EZ Publish last weekend, and I am just trying it out. But I like it so far.

Ł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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:40:04
Script start
Timing: Jan 19 2025 04:40:04
Module start 'layout'
Timing: Jan 19 2025 04:40:04
Module start 'content'
Timing: Jan 19 2025 04:40:05
Module end 'content'
Timing: Jan 19 2025 04:40:05
Script end

Main resources:

Total runtime0.7326 sec
Peak memory usage4,096.0000 KB
Database Queries90

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 590.2813152.6250
Module start 'layout' 0.00820.0030 742.906339.4453
Module start 'content' 0.01130.7197 782.3516764.3125
Module end 'content' 0.73100.0015 1,546.664124.1719
Script end 0.7325  1,570.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4478160.0002
Check MTime0.00140.1844160.0001
Mysql Total
Database connection0.00060.083810.0006
Mysqli_queries0.631786.2354900.0070
Looping result0.00120.1623880.0000
Template Total0.698895.420.3494
Template load0.00210.286020.0010
Template processing0.696795.098320.3483
Template load and register function0.00010.011910.0001
states
state_id_array0.00120.169710.0012
state_identifier_array0.00100.139020.0005
Override
Cache load0.00210.2871680.0000
Sytem overhead
Fetch class attribute can translate value0.00110.144150.0002
Fetch class attribute name0.00220.2989160.0001
XML
Image XML parsing0.00230.315950.0005
class_abstraction
Instantiating content class attribute0.00000.0065220.0000
General
dbfile0.00130.1821350.0000
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
10content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
12content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs