Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.5
Component:
Miscellaneous
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2012 at 08:02 UTC
Updated:
5 Nov 2012 at 06:41 UTC
I create custom views and print out pager in my views template as below:
if ($pager):
print_r($pager);
endif;
However, the pagination does not work. When I click on next or page number, nothing happened. Then I realize that it is due to url coding generated by Drupal. The link to another page is rendered as: [page-name]&[page-number], but when I replace & with & using firebug, the pagination works. How to tell Drupal to recognize special characters in urls? Or how to replace these special characters with ASCII characters.
Thanks
Comments
Comment #1
tonyvu commentedSorry I mean the link is rendered as [page-name]& ;[page-number]
Comment #2
dawehnerJust use print instead of print_r ... In general, please inform you about the difference between print and print_r they are quite fundamental.