link to last page
-
on pagination
pre and next button are built with something like this<a href="?{pagination.pages.qs}" data-page="{pagination.pages.page}">{pagination.pages.page}</a>
how do you make a link to last page?
-
ajaxify info
-
Isn't always the last index on pages array or am i missing something? Maybe i didnt understand the question at all.
-
Should be something like
ajaxify.data.pagination.pages[(ajaxify.data.pagination.pages.length)-1].qs
How do i call this on pagination.tpl?
-
<!-- BEGIN pages --> <!-- IF @last -->{pages.page}<!-- ENDIF @last --> <!-- END pages -->
This should do the trick. Although I'm planning on working on a helper to do this
{pages.__last.page}
to make it simpler in the future -
Actually Im looking for a link to last page on a button. Is it that approach? @psychobunny
-
Yeah just use {pages.qs} instead
-
@psychobunny said:
Yeah just use {pages.qs} instead
But my approach needs the link outside of "begin pages" bucle. Actually the button code should be on topic.tpl or category.tpl after the pagination tpl call.