I am trying to find a solution that allows users to sort the content that is displayed by the CMS while maintaining the pagination.
I have 50 articles, and after 10 articles I need to start pagination. I found several jQuery plugins that handle pagination without problems.
I will have a drop-down list with options so that the user can sort the information (from oldest to newest, from A to Z to the oldest).
Information is not presented in tables, but content is in divs, for example:
<label for="sort">Sort</label>
<select name="sort">
<option value="A-Z">A-Z</option>
<option value="Oldest to Newest">Oldest to Newest</option>
<option value="Newest to Oldest">Newest to Oldest</option>
</select>
<div>
<h1>Cool Title Here</h1>
<p class="date">6-5-10</p>
<p>Content Goes Here. <a href="#">read more</a></p>
</div>
<div>
<h1>It rains in Spain</h1>
<p class="date">5-8-10</p>
<p>Content Goes Here. <a href="#">read more</a></p>
</div>
<div>
<h1>Another Cool Title</h1>
<p class="date">4-15-10</p>
<p>Content Goes Here. <a href="#">read more</a></p>
</div>
Pagination Options will go here.
Not sure if anyone has found a solution that can solve both of these problems.
source
share