OllieMackJames Posted January 4, 2014 Share Posted January 4, 2014 I have different toplevelpages with children below each page. On the toplevel page I want to ahve a paginated call to the underlying pages I would like to get something like this: $results = $pages->find("parent=rootParent, template=blogpost-iframe, limit=$limit"); But apparently parent=rootParent is not a proper selector So on any give top level page I want to find all children below that parent page. I can do this with $page->children but then pagination will not work and that is what I need as well. Thanks! Link to comment Share on other sites More sharing options...
OllieMackJames Posted January 4, 2014 Author Share Posted January 4, 2014 OK, got it, for whoever needs it, here it is: $results = $pages->find("parent=$page, template=blogpost-iframe, limit=$limit"); Link to comment Share on other sites More sharing options...
Soma Posted January 4, 2014 Share Posted January 4, 2014 children() can also have a selector. In fact it's using a find behind the scenes. 1 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