Is there a way to show the last page in the pagination bar using using Display Tag
library? I got 3 pages but on the first page it shows 1 of 2
and I want to show 1 of 3
then 2 of 3
and finally 3 of 3
. Below is the current format I am using.
<display:setProperty name="paging.banner.first" value='<span class="pagelinks"> |< << | Page {0} <a href="{2}"> | >> </a><a href="{4}">>|</a></span>'/>
<display:setProperty name="paging.banner.last" value='<span class="pagelinks"> <a href="{1}">|< </a> <a href="{2}"> << | Page </a> {0} | >> >| </span>'/>
<display:setProperty name="paging.banner.full" value='<span class="pagelinks"> <a href="{1}">|< </a> <a href="{2}"> << | Page </a> {0}<a href="{3}"> | >> </a><a href="{6}">>| </a></span>'/>
If I change {4} in the first link it doesn't display anything. Please let me know how can I achieve this.
This is how it shows up:
Thanks.