Paul Forsyth, Paul Borgermans... Help me (articles in a period of time)

Author Message

Leandro Alves

Saturday 04 September 2004 12:49:17 pm

Please, How can I fetch all articles in my site in a period of time?

Eg: I need all articles that <b>was published</b> in my intranet company last month, All articles <b>from 08/01/2004 until 08/31/2004</b>

I want only the objects that was published in this period.

Does it possible?
Could you give me some help, idea?

Thanks a lot!
Leandro

Paul Borgermans

Saturday 04 September 2004 2:33:11 pm

Sure,

Use attribute filtering which is available for class level attributes as well as some general attributes ('published', 'modified', 'priority' ...

You should construct the two date limits with the datetime functions and then do a attribute filter on the published date.

http://ez.no/ez_publish/documentation/reference/data_fetching/content/list

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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 21:30:23
Script start
Timing: Jan 19 2025 21:30:23
Module start 'layout'
Timing: Jan 19 2025 21:30:23
Module start 'content'
Timing: Jan 19 2025 21:30:24
Module end 'content'
Timing: Jan 19 2025 21:30:24
Script end

Main resources:

Total runtime1.1031 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.4453152.6563
Module start 'layout' 0.00510.0027 742.101639.4922
Module start 'content' 0.00781.0936 781.5938524.2266
Module end 'content' 1.10150.0016 1,305.82038.0938
Script end 1.1030  1,313.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2991160.0002
Check MTime0.00130.1197160.0001
Mysql Total
Database connection0.00070.060910.0007
Mysqli_queries1.058795.9749540.0196
Looping result0.00050.0448520.0000
Template Total1.071097.120.5355
Template load0.00210.186720.0010
Template processing1.068996.904620.5345
Template load and register function0.00020.020910.0002
states
state_id_array0.00090.084910.0009
state_identifier_array0.00080.075420.0004
Override
Cache load0.00170.1508170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.058120.0003
Fetch class attribute name0.00100.093330.0003
XML
Image XML parsing0.00050.047420.0003
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00160.1488170.0001
String conversion0.00000.000740.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs