Fetch Items Created in Last X Time Period

Author Message

Alex Jones

Thursday 04 September 2003 7:13:09 am

Alrighty, another fetch question: How can I fetch all items created within the last 3 months? Is there an easy way to do this via fetch?

Thanks,

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Paul Forsyth

Thursday 04 September 2003 7:21:15 am

The new search method in 3.2 should allow you to do this:

http://ez.no/developer/ez_publish_3/documentation/customization/components/search/search_operator

Paul

Paul Borgermans

Thursday 04 September 2003 7:28:32 am

--oops, Paul F was first ;-)

The docs can be handy:

http://ez.no/developer/ez_publish_3/documentation/customization/components/search/search_operator

-paul

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

Alex Jones

Thursday 04 September 2003 7:32:03 am

Is there a way to do this in 3.1?

We're on the verge of launching a redesign and I do not want to upgrade the system between now and then (a week from tomorrow).

Thanks for such speedy replies! Two Pauls for the price of one. :)

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Paul Forsyth

Thursday 04 September 2003 7:38:54 am

price, what price? ;) paypal account to follow.

the only other thing i can think of is that you do a tree list of all objects, sort by published date, loop through them with some code logic in place to only show the objects published in the last three months. bit of a sledgehammer solution though :(

Alex Jones

Thursday 04 September 2003 7:40:02 am

I'll buy you both a beer or three if you come visit. ;)

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Paul Forsyth

Thursday 04 September 2003 7:42:07 am

just put an update on my earlier post.

p

Alex Jones

Thursday 04 September 2003 7:50:12 am

In reply to Paul F.'s sledgehammer solution:

I was thinking that might be the only way which isn't as ideal as I would hope for. But as the content wouldn't change too often, I could probably cache the contents so it wouldn't be too hard on the system.

Once this redesign goes live I will need to spend a good bit of time playing with 3.2.

Thanks again,

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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