mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Use pagination summary function
This commit is contained in:
parent
3f50a8e36c
commit
72b1473afa
@ -6,12 +6,16 @@
|
||||
<% end_if %>
|
||||
|
||||
<span>
|
||||
<% control BlogEntries.Pages %>
|
||||
<% control BlogEntries.PaginationSummary(4) %>
|
||||
<% if CurrentBool %>
|
||||
$PageNum
|
||||
<% else %>
|
||||
<% if PageNum = --- %>
|
||||
...
|
||||
<% else %>
|
||||
<a href="$Link" title="View page number $PageNum">$PageNum</a>
|
||||
<% end_if %>
|
||||
<% end_if %>
|
||||
<% end_control %>
|
||||
</span>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user