Creating an Items-per-Page Select Box - Developer Example
TODO-UC: Explain
Â
#if ($parameters["changeItemsPerPage"]) ## Test being able to remove the parseInt call after the next build. $group.setCurrentItemsPerPage($formatHelper.parseInt($parameters["changeItemsPerPage"])) #end  #if($group.getItemCount() > 10) <div class="columns small-8 medium-3"> <div class="label-group small"> <label for="itemsPerPage">Show:</label> <select id="itemsPerPage"> #foreach($availableItemsPerPage in $group.getAvailableItemsPerPage()) <option #if($group.getCurrentItemsPerPage() == $availableItemsPerPage) selected #end>$availableItemsPerPage</option> #end </select> </div> </div> #end