By hidromorf on
I am displaying a list of node teasers that contain the node title and author. Some of the nodes have comments that span across multiple pages. I want to show the pager of each node in the teaser list like this:
Node A Title (1 2 3 4 › »)
Author
Node B Title
Author
Node C Title (1 2 › »)
Author
so that users can directly access the last page of the comments.
I used
print theme('pager', array(), $length);
in the teasers of node-customtype.tpl.php, but, instead, the pager of the Views listing those teasers gets called. Is there some way to tell the theme function to look for each node's comments pager and not the Views pager?