UDT: finding page with a given value in "extra"-property?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
emgaron
Forum Members
Forum Members
Posts: 22
Joined: Tue Jul 10, 2012 6:52 am

UDT: finding page with a given value in "extra"-property?

Post by emgaron »

I'm currently trying to find out if/how it is possible - within an UDT - to search for pages in the hierarchy that have one of the extra-properties (extra1-3) set to a certain value. Unfortunately, I'm struggling with the documentation at https://apidoc.cmsmadesimple.org and have not been able to find this yet... There is "find_by_tag()" from the HierarchyManager, but that does not seem to work for something like "extra3" as tag (where do I find the list of valid tags for that method? ??? ). Hence, I assume I will somehow have to loop through all pages and check the "extra3"-property explicitly, but really no idea where/how to start. Pointers to documentation are most welcome!
emgaron
Forum Members
Forum Members
Posts: 22
Joined: Tue Jul 10, 2012 6:52 am

Re: UDT: finding page with a given value in "extra"-property?

Post by emgaron »

I should have asked this question earlier, 'cause shortly after hitting "Submit", I had a brainwave... ;) Maybe I'm thinking too complicated here - it may well be that Navigator with a suitable template is fully capable of solving the problem I'm trying to solve, so I'll try that first...
Post Reply

Return to “CMSMS Core”