HI hi
I'm currently working on pageination my documentlisting. I Have enabled the MarkupPagerNav module and activated allow page numbers on the documentholder template.
I'm using some different selectors, but as for the tests I would go with this one :
$documentHolder = $pages->find("template=documentHolder, status=hidden, limit=2, sort=created, docownerid={$user->id}");
the documentholder has 4 pages, so while using limit=2 there are 2 pages, which is working as expected. Next I try to give the 1,2, next appearing.
Using this:
echo $pagination = $documentHolder->renderPage();
I get an array to string conversion message and no pageitems.
Using this:
echo $documentHolder->render()
Theres no error and the pageitems are showing up, but if I try to page to page 2 PW tries to open /?page=2 and fetches the same items as on default/page1.
Where is my mistake?
Thanks
Harri