Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Pagination Plugin Docs?

Started by Muut Archive 12 years ago · 2 replies · 316 views
12 years ago

Are there any docs for the pagination plugin that comes with the blog skeleton? I didn't see a header file in the pagination folder.

I'm looking in particular for the variables available besides .preUrl, .hasPrev, etc. Perhaps pagination.number or pagination.length for the number of pages in the pagination collection?

12 years ago

OK so pagination|length returns the number of pages in the collection. Are there other variables to know about?

12 years ago

There are no docs as yet, For functionality you can look at the available methods of the user/plugins/pagination/classes/paginationhelper.php. This is the itertator class that has the helper methods. Also because this is an iteratory you can perform most Array methods on it (hnce why you can use |length which is a Twig filter on arrays.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1278 9 years ago
Archive · by Muut Archive, 9 years ago
2 886 9 years ago
Archive · by Muut Archive, 9 years ago
2 4015 9 years ago
Archive · by Muut Archive, 9 years ago
1 2891 9 years ago
Archive · by Muut Archive, 9 years ago
3 1075 9 years ago