[drupal-devel] hard coded page sizes

David Reed dreed10 at gmail.com
Wed Oct 12 21:59:13 UTC 2005


Thanks Moshe,  yep, that would do it for me.

So the consensus is a new "admin_page_size" variable with no UI
interface?  Correct?

I guess the next question I have is that when I looked at the existing
code of the 16 instances of admin type pages that I found they are not
all using the same hard-coded page size.

6 were using 50
6 were using 30
1 was using 25
3 were using 20

So do we create multiple variables?  By size range?  By module?  By ???


On 10/12/05, Moshe Weitzman <weitzman at tejasa.com> wrote:
> You can set the variable however you need on a page by page basis:
>
> if ($_REQUEST['pager_style'] == 'large') {
>    $conf['admin_pager_items'] = 500;
> }
>
> David Reed wrote:
> > Whether they are hard coded or if they are set with a variable I'm
> > stuck with one page size for the site.  For example I could only view
> > the logs with one page size, I couldn't view them 10 to a page in one
> > view and 50 to a page in another view.
> >
> > This may seem like a small point but I could envision an
> > administration use case where I may want to create some kind of a
> > "dashboard" that shows a limited set of data, like last 20 log
> > records, the top 10 pages visited, 10 comment record at a time.
> > Viewing any of these items outside of this "dashboard" one would want
> > to see the normal views with more data.
> >
> >
> > On 10/12/05, Adrian Rossouw <adrian at bryght.com> wrote:
> >
> >>-----BEGIN PGP SIGNED MESSAGE-----
> >>Hash: SHA1
> >>
> >>
> >>On 12 Oct 2005, at 9:09 PM, Gabor Hojtsy wrote:
> >>
> >>>It can be made into a theme setting though, to be changeable on the
> >>>theme settings pane.
> >>
> >>Or someone can write a small module with an interface for configuring
> >>these variables.
> >>
> >>The theme settings pane is confusing enough as it is.
> >>
> >>
> >>- --
> >>Adrian Rossouw
> >>Drupal developer and Bryght Guy
> >>http://drupal.org | http://bryght.com
> >>
> >>
> >>-----BEGIN PGP SIGNATURE-----
> >>Version: GnuPG v1.2.4 (Darwin)
> >>
> >>iD8DBQFDTXLmgegMqdGlkasRAu7GAKC+hHORqdm/3fM7Rs4ihM4xNP0q+ACfWhaB
> >>likVj/cMk4hl5bDntx8eXH8=
> >>=3ks8
> >>-----END PGP SIGNATURE-----
> >>
>
>



More information about the drupal-devel mailing list