cb2004 Posted June 17, 2016 Share Posted June 17, 2016 I have added an expiry field (date) to a template for articles which would need to expire. Some articles would not have an expiry date set, so I need to in theory display articles with a blank date or >today. I am wracking my brains but it is tired today, so I am looking for something along the lines of: foreach ($page->children("date_1=|>today") as $news) Cheers Link to comment Share on other sites More sharing options...
netcarver Posted June 17, 2016 Share Posted June 17, 2016 @cb2004, Although this doesn't directly answer your question, have you had a look at formmailer's SchedulePages module? If you intend using your target selector to publish/unpublish pages I think you'll find his module has it covered. Link to comment Share on other sites More sharing options...
tpr Posted June 17, 2016 Share Posted June 17, 2016 See if this helps (OR groups): https://processwire.com/api/selectors/#or-groups Link to comment Share on other sites More sharing options...
cb2004 Posted June 17, 2016 Author Share Posted June 17, 2016 Good work tpr foreach ($page->children("(date_1=), (date_1>today)") as $news) Link to comment Share on other sites More sharing options...
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