Reviewed: https://reviews.mahara.org/1182 Committed: http://gitorious.org/mahara/mahara/commit/f3162f804855a3cdfa560339028da7a29560a491 Submitter: Richard Mansfield (richa...@mahara.org) Branch: master
commit f3162f804855a3cdfa560339028da7a29560a491 Author: Son Nguyen <son.ngu...@catalyst.net.nz> Date: Fri May 18 16:36:15 2012 +1200 Be flexible in the number to results shown on a page Bug#781989 1. Added a new feature to build_pagination: - setlimit: enable=true/disable=false choosing limit values from the array limitoptions - the array limitoptions (page sizes) has been hardcoded inside build_pagination function. 2. Enable this feature to group member search and porfolio pages search Note: The default number of pages in Porfolio/Pages has been changed to 20 To enable this feature 1. pass 'setlimit' => true to build_pagination function 2. $js = "addLoadEvent(function() {p = {$pagination['javascript']}});"; 3. $smarty->assign('INLINEJAVASCRIPT', $js); Change-Id: Ib44b28d50895c6ea604bb1aedaebae3a3f1bfc1a Signed-off-by: Son Nguyen <son.ngu...@catalyst.net.nz> -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/781989 Title: Be flexible in the number to results shown on a page Status in Mahara ePortfolio: In Progress Bug description: On bug #707860 the suggestion was made to show all members of a group at once. In groups that are very large this may not be useful. Instead, we propose to allow a user to choose how many results he would like to see, e.g. 10, 25, 50, 100, 500 per page. This is not only useful for displaying the number of members in a group but for any overview page where basically search results are displayed: pages, collections, group. Thus, this feature would be good to have available in all these places. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/781989/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp