Be flexible in the number to results shown on a page

Bug #781989 reported by Kristina Hoeppner on 2011-05-13
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Wishlist
Son Nguyen

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.

Changed in mahara:
status: New → Triaged
tags: added: pager
Changed in mahara:
assignee: nobody → Son Nguyen (ngson2000)
status: Triaged → In Progress
milestone: none → 1.6.0

Reviewed: https://reviews.mahara.org/1182
Committed: http://gitorious.org/mahara/mahara/commit/f3162f804855a3cdfa560339028da7a29560a491
Submitter: Richard Mansfield (<email address hidden>)
Branch: master

commit f3162f804855a3cdfa560339028da7a29560a491
Author: Son Nguyen <email address hidden>
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 <email address hidden>

tags: added: newfeature1.6
Changed in mahara:
status: In Progress → Fix Committed

The drop-down menu was also implemented on the Portfolio pages overview page.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 status fixreleased
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iJwEAQECAAYFAlCbHO8ACgkQuMoJ2LQ3zxH8TAP/YN4BiCJZsn5a899/0UzV31Qg
lM8LXAwZWa6zFv6t0BQUHCqe6eFK9wPp51qgCWWXjUZ3vvvVcsyeWp6626aBFKSU
pCQXI9E7huPw802nJQ9WcZXRBUmgw87ww72Tx4mybnu7SPSrkZgXdnPGSMwDs89N
oWvTpl7Xuac48e6p0lU=
=ouU+
-----END PGP SIGNATURE-----

Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers