Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding paginator links

useful when working with hundreds of nodes
  • Loading branch information...
commit 35388ce0df46df35972d4375fd549923910eab94 1 parent 6adde3f
Rachman Chavik rchavik authored

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. +7 1 View/Common/admin_index.ctp
8 View/Common/admin_index.ctp
@@ -88,7 +88,13 @@ if (!isset($className)) {
88 88 <?php echo $pagingBlock; ?>
89 89 <?php else: ?>
90 90 <?php if (isset($this->Paginator) && isset($this->request['paging'])): ?>
91   - <div class="paging"><?php echo $this->Paginator->numbers(); ?></div>
  91 + <div class="paging">
  92 + <?php echo $this->Paginator->first('< ' . __('first')); ?>
  93 + <?php echo $this->Paginator->prev('< ' . __('prev')); ?>
  94 + <?php echo $this->Paginator->numbers(); ?>
  95 + <?php echo $this->Paginator->next(__('next') . ' >'); ?>
  96 + <?php echo $this->Paginator->last(__('last') . ' >'); ?>
  97 + </div>
92 98 <div class="counter"><?php echo $this->Paginator->counter(array('format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%'))); ?></div>
93 99 <?php endif; ?>
94 100 <?php endif; ?>

0 comments on commit 35388ce

Please sign in to comment.
Something went wrong with that request. Please try again.