Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #157 from whiteoctober/template-list-docs
Browse files Browse the repository at this point in the history
Add documentation about how to render the items in a page
  • Loading branch information
Sam Partington committed May 23, 2017
2 parents e393080 + df3fc63 commit 040d237
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Expand Up @@ -121,6 +121,19 @@ With options:

See the [Pagerfanta documentation](https://github.com/whiteoctober/Pagerfanta) for the list of possible parameters.

Rendering the page of items itself
----------------------------------

The items can be retrieved using `currentPageResults`. For example:

```twig
{% for item in my_pager.currentPageResults %}
<ul>
<li>{{ item.id }}</li>
</ul>
{% endfor %}
```

Translate in your language
--------------------------

Expand Down

0 comments on commit 040d237

Please sign in to comment.