Skip to content
Browse files

adding paginator links

useful when working with hundreds of nodes
  • Loading branch information...
1 parent 6adde3f commit 35388ce0df46df35972d4375fd549923910eab94 @rchavik rchavik committed Sep 2, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 View/Common/admin_index.ctp
View
8 View/Common/admin_index.ctp
@@ -88,7 +88,13 @@ if (!isset($className)) {
<?php echo $pagingBlock; ?>
<?php else: ?>
<?php if (isset($this->Paginator) && isset($this->request['paging'])): ?>
- <div class="paging"><?php echo $this->Paginator->numbers(); ?></div>
+ <div class="paging">
+ <?php echo $this->Paginator->first('< ' . __('first')); ?>
+ <?php echo $this->Paginator->prev('< ' . __('prev')); ?>
+ <?php echo $this->Paginator->numbers(); ?>
+ <?php echo $this->Paginator->next(__('next') . ' >'); ?>
+ <?php echo $this->Paginator->last(__('last') . ' >'); ?>
+ </div>
<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>
<?php endif; ?>
<?php endif; ?>

0 comments on commit 35388ce

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