Sorting the data with pagging
This is an open discussion with 1 reply, filed under General.
Search
Generally you cannot combine your own XSLT (view) sorting with data source (query) pagination. You should sort your entries in the same data source that does the pagination.
If you must sort in XSLT, then your data source will need to return all entries (no pagination), and you will need to build pagination into your XSLT e.g.
select="all-videos/entry"
might become:
select="all-videos/entry[position() < 12]"
to get the first 12 entries. In reality the logic will be more complex than this.
Create an account or sign in to comment.
Hi,
I sorted the data by using the code
and i call the template by using
the above code is displaying the result with pagination, but the result is sorted only 12 data, because i gave 12 results per page by using all-videos data source. so it took the first 12 entry sort and display it, when i click pagination it took another 12 accordingly.
but i want to sort the all the datas entered in all-videos section with paging .
Can any one please help to resolve this problem.
Thank you for your solution.