Forums / Setup & design / Timing of an article

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

eZ debug

Timing: Jan 19 2025 01:13:53
Script start
Timing: Jan 19 2025 01:13:53
Module start 'content'
Timing: Jan 19 2025 01:13:53
Module end 'content'
Timing: Jan 19 2025 01:13:53
Script end

Main resources:

Total runtime0.1522 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.9453180.8438
Module start 'content' 0.00580.0066 769.7891109.9766
Module end 'content' 0.01240.1397 879.7656538.0000
Script end 0.1521  1,417.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.3054200.0002
Check MTime0.00140.9456200.0001
Mysql Total
Database connection0.00060.423110.0006
Mysqli_queries0.107770.75421410.0008
Looping result0.00130.82891390.0000
Template Total0.139391.610.1393
Template load0.00080.549210.0008
Template processing0.138590.998510.1385
Override
Cache load0.00060.386310.0006
Sytem overhead
Fetch class attribute can translate value0.00110.739010.0011
XML
Image XML parsing0.00040.260810.0004
General
dbfile0.00372.4090200.0002
String conversion0.00000.004130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs