Pager in views

Eliza - July 4, 2009 - 16:17

Does anyone know how to influence pager.inc file or something else to remove links "last", "previous", "next", "first" in the views pager and leave only page numbers?
And the second question - how to duplicate this pager above the views` content - want to have two pagers above and below?

The answer to your second

midkemia - July 4, 2009 - 16:37

The answer to your second question is to theme the view

look for the views theme tpl probably like (Display Output)

views-view--YOURVIEW--page.tpl.php

that includes

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

copy it to where you want in the same tpl and save in your themes directory as normal

Thanks a lot, it works! And

Eliza - July 4, 2009 - 17:29

Thanks a lot, it works! And accidentally, don`t you know how to add row numbers (i.e. ordinal number of each node in current full node view)? In the field style view there is a special field for it. I`ve asked everywhere - nobody answers.

If i take your meaning. In

midkemia - July 4, 2009 - 18:05

If i take your meaning. In your view

Basic Settings

Style -> HTML List then uses the gear to adjust to Ordered or Unordered

It counts nodes per page, if

Eliza - July 4, 2009 - 18:16

It counts nodes per page, if using pager. And I want to count by order in a full view. Think there also needed to put some code in tpl.php, but what!?

 
 

Drupal is a registered trademark of Dries Buytaert.