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

vm’s picture

a screenshot of the issue linked to the post and an idea of where you expect the pagination to occur would be of help.

gkom’s picture

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.

gkom’s picture

The problem was a "pager id" conflict. It was solved by setting the "pager id" of the views pager to something other than zero.

tannguyenhn’s picture

Thank gkom ! . It's work for me