[drupal-devel] hard coded page sizes

Moshe Weitzman weitzman at tejasa.com
Wed Oct 12 20:58:06 UTC 2005


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