Is it possible to filter or match on a pagelist by date? For example, only include pages from the current year, or ideally only after a certain date or time?
ca161 Hi there, at the moment only regex matching is available for filtering pages. So you could use a regex to filter the date variable using the match parameter. However, some „later than“ or „newer than“ is not yet possible.
I understand, thank you for your reply - I have built a plugin which parses the date string so I'm able to do this, even though it's a bit of a hack 😅
That does lead me to a follow up question though - is there a native way in the Automad template syntax to iterate through a pagelist returned by a plugin, can this be assigned to a variable? Or am I better off just using native PHP?
ca161 At the moment the Pagelist is kind of locked down. Conceptually it shouldn’t be a problem to modify the pagelist object from within a plugin. I will take a look at it. I can imagine it just needs a setter.