Posted by gkom on December 2, 2012 at 7:14pm
Hello,
I have embedded a view in node--mytype.tpl.php but the pagination links from the view also appear under the comments.
I have looked everywhere but can't find a way to change this.
Could you please point me to the right direction.
Thanks
Comments
=-=
a screenshot of the issue linked to the post and an idea of where you expect the pagination to occur would be of help.
Of course.I have uploaded a
Of course.
I have uploaded a screenshot here: (removed url - no longer needed)
I have a views block with an ajax pager embedded in node--mytype.tpl.php just after the main content.
I just realised that this only happens if the view is embedded before
print render($content['comments']);and only if there are comments available.It also overrides the comments pager i.e. the views pager is displayed instead of the comments pager when the comments pager is required.
Also the urls for the views pager are the same with those of the comment pager: node/nid?page=1.
The problem was a "pager id"
The problem was a "pager id" conflict. It was solved by setting the "pager id" of the views pager to something other than zero.