I want to know is it possible to display last page of entities ? in default pagination, elgg_list_entities will display page 1 , and we must click "1,2,... Next' button to go to other page,
for some reason i want to display last page
I've used
header('location: ...');
to redirect to last page, but i wonder if there is simple way to do this :)
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Steve Clay@steve_clay
Steve Clay - 0 likes
- Steve Clay@steve_clay
Steve Clay - 0 likes
- Cim@manacim
Cim - 0 likes
You must log in to post replies.I assume you want the URL to the last page.
Given $options from a query: add ["count" => true] to $options and run the query to get $count.
If you don't want to display pagination, do the same operations to get $offset, then add ['offset' => $offset] and ['pagination' => false] to the query $options.
@Steve maybe he wants the order by ascending? Oldest post goes to the top of the first page instead of default?