Thanks for the module. It works great! I'm now using a custome-node.tpl.php where I pull information over print $node->content["xzy"] . What should I put in the custom-node.tpl.php to get a certain pager? thank you!

Comments

Anonymous’s picture

I'm also wondering the same thing. But for Contemplate.

I stumbled upon these snippets, but they failed to work:

Top pager:

print $node->content['custom_pager_top'][1]['#value']

Bottom pager:

print $node->content['custom_pager_bottom'][1]['#value']

Any ideas?

txcrew

MGN’s picture

I 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.

nchase’s picture

ok, I figured it out now, its bascially very easy:
you have to put this in your custome-node.tpl.php

for top pager

print $node->content['custom_pager_top'][1]['#value']

and this for the bottom pager

print $node->content['custom_pager_bottom'][1]['#value']

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

joachim’s picture

Status: Active » Closed (fixed)

Looks like this can be closed.