Pagelist filter based on day & time...

Permalink
Hi there, I have a page which I only want to appear in the pagelist (custom) that I have created...

I only want it to appear in the pagelist on Mondays, Wednesdays & Fridays between 1pm and 2pm (I know it sounds crazy!)

I found that I could use a filter based on time using one of these:
$pageList->filterByAttribute('attribute_handle', date('Y-m-d H:i:s', $start)); // equal to $stat
$pageList->filterByAttribute('attribute_handle', date('Y-m-d H:i:s', $start), '>='); // greater than or equal to $start

Would anyone be able to point me in the right direction as how to implement this (if indeed this even possible)?

Many thanks

Rob

rc255
View Replies: