I want to display certain featured pages on the homepage. I have created a true/false property with which I can toggle whether a page is featured on the homepage.
These nodes can exist anywhere in the tree. So I would like to know how I can easily select all nodes that have this property set, so I can just loop through them, and read all other properties such as name, url and a short description.
Select all nodes with a specific property
Hi guys,
I want to display certain featured pages on the homepage. I have created a true/false property with which I can toggle whether a page is featured on the homepage.
These nodes can exist anywhere in the tree. So I would like to know how I can easily select all nodes that have this property set, so I can just loop through them, and read all other properties such as name, url and a short description.
This does not work:
Any suggestions on how to make it work?
Thanks,
RasB
Hi rasb,
Looks like you just need to add the currentPage parameter to the mix:
/Chriztian
Hi rasb
This line of code finds excatly what you need no matter where in the structure its placed.
/Finn
Perfect! Thanks Finn.
Chriztian, I had tried that earlier with no luck. Not sure if I did something wrong. But it didn't work.
/RasB
is working on a reply...