Forums / Setup & design / Paul Forsyth, Paul Borgermans... Help me (articles in a period of time)

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