Show
Ignore:
Timestamp:
05/29/2008 04:09:07 PM (6 months ago)
Author:
Geert
Message:

Pagination groups functionality added

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/config/pagination.php

    r2486 r2717  
    33 * @package  Pagination 
    44 * 
    5  * Views folder in which your pagination style templates reside. 
     5 * Pagination configuration is defined in groups which allows you to easily switch 
     6 * between different pagination settings for different website sections. 
     7 * 
     8 * Group Options: 
     9 *  directory      - Views folder in which your pagination style templates reside 
     10 *  style          - Pagination style template (matches view filename) 
     11 *  uri_segment    - URI segment (int or 'label') in which the current page number can be found 
     12 *  query_string   - Alternative to uri_segment: query string key that contains the page number 
     13 *  items_per_page - Number of items to display per page 
     14 *  auto_hide      - Automatically hides pagination for single pages 
    615 */ 
    7 $config['directory'] = 'pagination'; 
    8  
    9 /** 
    10  * Pagination style template (matches view filename). 
    11  */ 
    12 $config['style'] = 'classic'; 
    13  
    14 /** 
    15  * URI segment (or 'label') in which the current page number can be found. 
    16  */ 
    17 $config['uri_segment'] = 3; 
    18  
    19 /** 
    20  * Number of items to display per page. 
    21  */ 
    22 $config['items_per_page'] = 20; 
    23  
    24 /** 
    25  * Automatically hide pagination completely for single pages. 
    26  */ 
    27 $config['auto_hide'] = FALSE; 
     16$config['default'] = array 
     17( 
     18        'directory'      => 'pagination', 
     19        'style'          => 'classic', 
     20        'uri_segment'    => 3, 
     21        'query_string'   => '', 
     22        'items_per_page' => 20, 
     23        'auto_hide'      => FALSE, 
     24);