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

Commit

Permalink
updated overview template => smart-content pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
wachterjohannes committed Nov 3, 2014
1 parent 721e448 commit e5f7f8e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@
</div>

<ul class="pagination">
{% set page = 1 %}
{% if request.get.p is defined %}
{% set page = request.get.p %}
{% endif %}
{% set page = view.smartcontent.page %}

{% if page-1 >= 1 %}
<li><a href="{{ content_path(content.url) }}?p={{ page-1 }}">&laquo;</a></li>
{% endif %}
<li><a href="{{ content_path(content.url) }}?p={{ page+1 }}">&raquo;</a></li>
{% if view.smartcontent.hasNextPage %}
<li><a href="{{ content_path(content.url) }}?p={{ page+1 }}">&raquo;</a></li>
{% endif %}
</ul>

<div property="smartcontent">
Expand Down

0 comments on commit e5f7f8e

Please sign in to comment.