I created a view and set a pager for it. I is shown in the bottom of the page. Is there any way to show it both in the bottom and in the top of the page?

up vote 21 down vote accepted

Copy views-view.tpl.php template file from theme subdirectory of Views module to your theme folder, edit it and duplicate fragment of code responsible for printing the pager:

  <?php if ($pager): ?>
    <?php print $pager; ?>
  <?php endif; ?>

to where you want it.

you can add the following code in your views template

<?php theme('pager',
                array(
                    'tags' => array()
                )
            );
?>

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.