Gideon So Posted May 12, 2015 Share Posted May 12, 2015 Hi all, I have a page which use MarkupPagerNav to generate a pager. It works fine. I have made a menu with the following code to generate the sub menu: $grandChildren = $child->children("limit=5"); It works find in the 1st page but when I click to the 2nd page, the $grandChildren array return an empty array and the sub menu doesn't show up. I have tested with this code: $grandChildren = $child->children; It works everywhere. Any hints for me? Best Regards, Gideon So Link to comment Share on other sites More sharing options...
adrian Posted May 12, 2015 Share Posted May 12, 2015 I think you need to override the "start" selector that is being added from PagerNav. Setting it to 0 should fix things. $grandChildren = $child->children("limit=5, start=0"); 1 Link to comment Share on other sites More sharing options...
Gideon So Posted May 12, 2015 Author Share Posted May 12, 2015 Hi Adrian. You are fast. And it works as expected. Don't know that there is a "start" selector at all. I can't find any document mention about it. Thanks a lot. Gideon 1 Link to comment Share on other sites More sharing options...
adrian Posted May 12, 2015 Share Posted May 12, 2015 No problem! "start" is hidden - try turning on Advanced Mode on the API Cheatsheet and you'll see it under the selectors section. 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