Hi all,
Been a while 🙂
I'm trying to achieve two kinds of selectors. One to select pages based on a parents field value and one to select pages where all children match a condition.
For example, I am hoping to do something like this:
<?
//I want pages of template type task where the PARENT page field "closed" = 0
$groups = $pages->find("template=task,parent-of-page.closed=0")
?>
Finally, I would like to select pages where all children follow a condition
<?php
//I want pages of template type group where ALL of the pages children field called my_int_field = 0
$matches = $pages->find("template=group, children.my_int_field=0");
?>
Are these two scenarios currently possible without iterating over a simpler selector first?
Thanks!