Search Page List by Collection Handle?

Permalink
Is it possible to search the page list by collection handle?

 
mhawke replied on at Permalink Reply
mhawke
Each page has a unique Collection Handle so any such search will only return one page which isn't really a 'list'. Perhaps that's why I can't find anything like 'filterByCollectionHandle' function or even a 'sortByCollectionHandle' function in concrete/core/models/page_list.php
Jeremy1026 replied on at Permalink Reply
Which is why I want to filter/search by it. I know the unique (dynamically different depending on each run) page that I want to get data from. But don't want to do a foreach or similar on the ~17000 returned pages from get all.
mhawke replied on at Permalink Reply
mhawke
If they are being dynamically created then is the page name being created automatically as well? Can you search for that?
Jeremy1026 replied on at Permalink Reply
I need the information in my header to update meta tags on page load for social sharing. The pages are displayed in a custom page using full AJAX for content display. I am passing in the collection handle as part of the URL. Since it is going in the URL I need to use the handle to be URL safe.
mhawke replied on at Permalink Reply
mhawke
Why not just use

urlencode($pl->getByName(your_page_name))