Hi
Can anyone tell me how to get Pagination to work with this please?
I have everything else working fine, but the placeholder area for pagination is blank every time, whether it’s in a div a paragraph or a table cell.
I noticed a typo in the readme file which shows
<div class="my_pagination">[+pagination]</div>
and have tried
and
to no avail.
I have tried it in the chunk just in case but that doesn’t work (wouldn’t expect it to). And I have put it to no avail just after my snippet call as suggested in the readme:
[!loopDbChunk? &tableName=`mytablename` &chunkName=`mychunkname` &numLinks=`3` &perPage=`3` &orderby=`email` !]
[+pagination+]
So I’m wondering if my snippet is the updated snippet and if not, where I can get the latest?
It was downloaded from page 1 of this thread today and is dated 4th Sept 07 (as is pagination.php which I uploaded to the /wwwroot/assets/snippets/LoopDBChunk directory together with LoopDBChunk.php dated 23rd sept and transformFuncs.php dated May 07.
Though I can see that LoopDBChunk.php has the following in it so I think that is fine:
$p = new Pagination(array('per_page' => $this->perPage,
'num_links' => $this->numLinks,
'cur_item' => $pageStart,
'total_rows' => $numRows ));
$modx->setPlaceholder('pagination', $p->create_links());
return($output);
Or maybe I’m just missing an obvious something?
Any help would be much appreciated.
Thanks
Anni