But find() seams to look also through all SubPages of current page/document. So the result is TRUE although in current document the property is set to «FALSE».
Is it possible to limit to/filter the current TYPO3.Neos:Document, or is there a more
purposeful FlowQuery-function to use?
Thank you @mficzel.
Is there a flowQuery-way to check inside the hole current document (but NOT anywhere below), if there is an Element from Type Vendor.Site:NodeType with proertyName = true?
Or is this not possible?
Thanks,
and in the hole current page, like in demo-site the hole Home (documentNode)?
With all the subElements in main, column0, footer, and so on, but not the subPage «Features», «Shortcuts» and so on?
Should this work with .children(‘main’)?
In my installation it looks like the check include only the direct child of main ONLY. Do I have do change something, so FlowQuery is looking also in the children from the children’s children?
Try ${q(document).children('[instanceof TYPO3.Neos:ContentCollection]').children('[instanceof Vendor.Site:NodeType][propertyName=true]').is()} that should return true if any collection on the current Document has a text with that property.