article: date to show and to hide it

Author Message

Alessandro Cipriani

Tuesday 03 February 2004 1:40:48 am

hi all
i'm overriding the corporate template and i've seen that in the news area in the home page the latest n articles are displayed. i think this is a good feature but i need a little improvement to it:

when i write an article (which will be shown in the "news" section) i'd like to set a date from wich it will be displayed, and a date at which it will be hided.
for example: today I write a news about a meeting that will take place in rome the 1st of march. I want this article displayed from now until the 1st of march, because after that date it will be useless to display it.

i know how to add the 2 dates as attributes of the article class, but i need the function to fetch the articles "displayable" when i visit the site

another improvement will be to ever display articles with the above dates=null

any hint? thanks
alessandro

Alessandro Cipriani

Wednesday 11 February 2004 1:17:16 am

none got the same problem?
I think it's a basic feature for a content manager like ezPublish!
any hint?

thanx
alessandro

Alessandro Cipriani

Tuesday 17 February 2004 5:59:52 am

please help me
this improvement will be usefull for all!

best regards
alessandro

Muhammad Khalid Majeed

Tuesday 04 May 2004 11:46:37 pm

I also want to work like this but I can't found any solution for it. Although this is the basic feature of any CMS but i don't know why ez have not this feature. If anyone have solution plz reply.

Muhammad Khalid
Software Engineer
www.webgurru.net

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 18 2025 19:31:54
Script start
Timing: Jan 18 2025 19:31:54
Module start 'layout'
Timing: Jan 18 2025 19:31:54
Module start 'content'
Timing: Jan 18 2025 19:31:55
Module end 'content'
Timing: Jan 18 2025 19:31:55
Script end

Main resources:

Total runtime0.6035 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1484152.6406
Module start 'layout' 0.00550.0027 741.789139.4609
Module start 'content' 0.00820.5940 781.2500549.6719
Module end 'content' 0.60220.0013 1,330.921912.1563
Script end 0.6035  1,343.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5661160.0002
Check MTime0.00130.2166160.0001
Mysql Total
Database connection0.00080.133710.0008
Mysqli_queries0.551591.3798600.0092
Looping result0.00050.0836580.0000
Template Total0.575995.420.2879
Template load0.00240.405620.0012
Template processing0.573495.013120.2867
Template load and register function0.00010.020410.0001
states
state_id_array0.00070.123010.0007
state_identifier_array0.00090.141020.0004
Override
Cache load0.00210.3446270.0001
Sytem overhead
Fetch class attribute can translate value0.00060.093520.0003
Fetch class attribute name0.00120.204050.0002
XML
Image XML parsing0.00070.121820.0004
class_abstraction
Instantiating content class attribute0.00000.002870.0000
General
dbfile0.00070.1200160.0000
String conversion0.00000.001140.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs