Jump to content


Photo

markup pager not working when logged in as superuser?


  • Please log in to reply
3 replies to this topic

#1 Soma

Soma

    Hero Member

  • Moderators
  • 3,194 posts
  • 1749

  • LocationSH, Switzerland

Posted 28 May 2012 - 04:49 PM

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?

@somartist | modules created | support me, flattr my work flattr.com


#2 ryan

ryan

    Hero Member

  • Administrators
  • 5,773 posts
  • 3122

  • LocationAtlanta, GA

Posted 29 May 2012 - 11:10 AM

Thanks Soma, I can duplicate this. I will hunt it down.

#3 ryan

ryan

    Hero Member

  • Administrators
  • 5,773 posts
  • 3122

  • LocationAtlanta, GA

Posted 29 May 2012 - 11:19 AM

Okay I think this is fixed now. Please try the latest commit and let me know if this resolves the issue on your end too?

Thanks,
Ryan

#4 Soma

Soma

    Hero Member

  • Moderators
  • 3,194 posts
  • 1749

  • LocationSH, Switzerland

Posted 29 May 2012 - 11:33 AM

Ryan you're my hero!

Loaded, tested, works now. Happy.

@somartist | modules created | support me, flattr my work flattr.com





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users