Closed (fixed)
Project:
Custom Pagers
Version:
5.x-1.9
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2008 at 19:48 UTC
Updated:
3 Mar 2009 at 14:11 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedI'm also wondering the same thing. But for Contemplate.
I stumbled upon these snippets, but they failed to work:
Top pager:
Bottom pager:
Any ideas?
txcrew
Comment #2
MGN commentedI am not sure about 5.x, but what you have described works perfectly well with 6.x ( custom_pagers-6.x-1.10-beta1 and contemplate-6.x-0.14). You also have to make sure that you have the pager position set appropriately on the custom pagers admin page and the middle value ( i.e. 1 in your example) is the correct pager id for the node type. [If you are not sure of the values, you can always add print_r($node->content); to your custom-type-body.tpl.php file and then view the node to see the contents of the array....]
If there is a better way to use Contemplate and custom pagers, please let me know, but this is working for me.
Comment #3
nchase commentedok, I figured it out now, its bascially very easy:
you have to put this in your custome-node.tpl.php
for top pager
and this for the bottom pager
Where [1] is the ID of the pager. If you created a custome pager having the id = 5 you need to put in the 5. You get this id from the
-> admin -> configuration -> custome pager by hovering over the "edit" link. It will tell you something like
/admin/build/custom_pagers/edit/12 , the 12 at the end is your id you have to put in your custome-node.tpl.php.
It's working fine now, thanks to txcrew and MGN
Comment #4
joachim commentedLooks like this can be closed.