Jump to content

markup pager not working when logged in as superuser?


Soma
 Share

Recommended Posts

I tried for hours to get markup pager nav to work in the search page. After I logged out to see what happens, it worked. It seems only when I'm logged in as superuser, it doesn't works when logged in as an editor.

All I do is

$matches = $pages->find("title|body|sidebar%=$q, limit=3");

$count = count($matches);
if($count) {
$out .= $matches->renderPager();
...

Anybody can confirm this? I tried in 2 installations.

EDIT::

Ok I tried again and on an install without language fields installed AND language page title set, it works. After installing and switching "title" field to language page title field AND set superuser language to an alternative like german, the pagination stops working with a search like the above. The limit isn't recognized anymore only when I would do:

$pages->find("title|body|sidebar%=$q")->find("limit=3");

And then the limit works but the pagination doesn't work anyway.

So in other example in short, for guest user it works when I set the guest to default language, but when set to an alternative it doesn't.

What's happening?

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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