HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/iestorre/www2/modules/views/help/top-pager.html
How to add a pager to the top and bottom of a view in Views2.

Copy the views-view.tpl.php from the /views/theme directory to themes/yourtheme/theme directory. Find the following code...


<pre>
  &lt;?php if ($attachment_before): ?&gt;
    &lt;div class="attachment-before"&gt;
      &lt;?php print $attachment_before; ?&gt;
    &lt;/div&gt;
  &lt;?php endif; ?&gt;
</pre>

Insert the following code after it (this is copied directly from the same code at the bottom of the tpl):

<pre>
  &lt;?php if ($pager): ?&gt;
    &lt;?php print $pager; ?&gt;
  &lt;?php endif; ?&gt;
  </pre>