dreerr Posted October 10, 2016 Share Posted October 10, 2016 This is embarrassing , but I can't seem to find the answer: I'm quering Repeater Items like $all_date_entries = $pages->find("template=repeater_dates,include=all") when looping over the results I want to get to the page they were created. `$item->parent` is not the right result here. How do I query the originating page? Link to comment Share on other sites More sharing options...
adrian Posted October 10, 2016 Share Posted October 10, 2016 You might be looking for getForPage(), but you might be better off with subselectors: https://processwire.com/api/selectors/#sub-selectors There are some examples in there about finding main pages based on the content of repeater fields on those pages. 4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now