Merge pull request #237 from flashbackzoo/pulls/better-pagination-docs

Improvements to the pagination docs
This commit is contained in:
Christopher Pitt 2015-05-14 11:34:16 +12:00
commit 7c45b23a30
3 changed files with 10 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

View File

@ -9,7 +9,7 @@
* Publish Date - Set a blog post to publish in the future. * Publish Date - Set a blog post to publish in the future.
* Custom GridField components for quickly adding new objects. * Custom GridField components for quickly adding new objects.
* RSS Feed of the blog * RSS Feed of the blog
* Custom pagination via the Blog's "Settings" tab. * [Custom pagination](pagination.md).
## Screenshots ## Screenshots

9
docs/en/pagination.md Normal file
View File

@ -0,0 +1,9 @@
# Pagination
By default your Blog will display ten posts per page. The number of posts per page is configurable via the "Settings" tab. Setting posts per page to zero will disable pagination, displaying all of your posts on a single page.
![](_images/blog-settings-pagination.png)
To customise the look and feel of the pagination component, simply override the template located at `/blog/templates/Includes/Pagination.ss`
If you have comments enabled, comment pagination is configurable via the [SilverStripe Comments Module configuration](https://github.com/silverstripe/silverstripe-comments/blob/master/docs/en/Configuration.md).