Jump to content

Recommended Posts

Posted

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

Posted

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");
  • Like 1
Posted

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

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...