cb2004 Posted June 17, 2016 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
netcarver Posted June 17, 2016 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.
tpr Posted June 17, 2016 Posted June 17, 2016 See if this helps (OR groups): https://processwire.com/api/selectors/#or-groups
cb2004 Posted June 17, 2016 Author Posted June 17, 2016 Good work tpr foreach ($page->children("(date_1=), (date_1>today)") as $news)
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