diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-05-21 06:54:39 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-05-21 06:54:39 +0200 |
commit | 8ddc0db3bb835fbb880c25882b1016747527742c (patch) | |
tree | 9db607ecc9bdbfc678d92337138fc80410f3d9d2 /user_guide | |
parent | bd08d84525e5f9af869d3aaba92906d2047272cc (diff) |
Added support for query strings to the Pagination class, automatically detected or explicitly declared.
Diffstat (limited to 'user_guide')
-rw-r--r-- | user_guide/changelog.html | 1 | ||||
-rw-r--r-- | user_guide/libraries/pagination.html | 11 |
2 files changed, 9 insertions, 3 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 1c1d7a3c5..568b3b961 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -69,6 +69,7 @@ SVN Revision: not currently released</p> <li>Libraries
<ul>
<li>Set the mime type check in the <a href="libraries/file_uploading.html">Upload class</a> to reference the global mimes variable.</li>
+ <li>Added support for query strings to the <a href="libraries/pagination.html">Pagination class</a>, automatically detected or explicitly declared.</li>
</ul>
</li>
<li>Other changes
diff --git a/user_guide/libraries/pagination.html b/user_guide/libraries/pagination.html index 5f9d8a0f1..d96f2d00c 100644 --- a/user_guide/libraries/pagination.html +++ b/user_guide/libraries/pagination.html @@ -117,9 +117,14 @@ something different you can specify it.</p> <h4>$config['num_links'] = 2;</h4>
-<p>The number of "digit" links you would like before and after the selected page number. For example, the number 2
-will place two digits on either side, as in the example links at the very top of this page.</p>
-
+<p>The number of "digit" links you would like before and after the selected page number. For example, the number 2
+ will place two digits on either side, as in the example links at the very top of this page.</p>
+<h4>$config['page_query_string'] = TRUE</h4>
+<p>By default, the pagination library assume you are using <a href="../general/urls.html">URI Segments</a>, and constructs your links something like</p>
+<p><code>http://www.your-site.com/index.php/test/page/20</code></p>
+<p>If you have $config['enable_query_strings'] set to TRUE your links will automatically be re-written using Query Strings. This option can also be explictly set. Using $config['page_query_string'] set to TRUE, the pagination link will become.</p>
+<p><code>http://www.your-site.com/index.php?c=test&m=page&per_page=20</code></p>
+<p>Note that "per_page" is the string automatically passed.</p>
<h2>Adding Enclosing Markup</h2>
<p>If you would like to surround the entire pagination with some markup you can do it with these two prefs:</p>
|