Manol Posted March 3, 2014 Posted March 3, 2014 Hi there. It might be a simple question but I don't know where to start, how can I get pages modified|created after certain date and time? Thanks.
Soma Posted March 3, 2014 Posted March 3, 2014 ... Attention: kongondo is on to about something ... 1
kongondo Posted March 3, 2014 Posted March 3, 2014 Clarify... Today (your title) or certain date and time? Modified or Created? Those two are different things ...hehe...I thought Soma is on to Something! 1
kongondo Posted March 3, 2014 Posted March 3, 2014 http://processwire.com/talk/topic/4883-searching-pages-with-date-like-someday/ http://processwire.com/talk/topic/3290-sort-by-date-range/ 1
adrian Posted March 4, 2014 Posted March 4, 2014 I think this is what you are looking for: $datetime = strtotime("2014-03-01"); $sp = $pages->find("modified>$datetime"); foreach($sp as $p){ echo "<p>{$p->title}</p>"; } Just swap out modified for created if that's what you want.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now