CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • how to set default row number in listings to 100 ?
Pages: [1]

Author Topic: how to set default row number in listings to 100 ?  (Read 960 times)

brigittem

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 1
how to set default row number in listings to 100 ?
March 23, 2010, 05:24:29 am
Hi,

is it possible to define the default row number in listings to 100 ? (=100 contacts per page in search result)

Thanks,

Brigitte

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: how to set default row number in listings to 100 ?
March 23, 2010, 06:59:39 am
Bottom of the list (click on 100, oviously):

Rows per page:   25    |    50   |   100   
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: how to set default row number in listings to 100 ?
March 27, 2010, 08:16:26 pm
I think you were asking how to set it so it DEFAULTS to 100 each time you open the page, rather than having to click 100 each time.  Am I correct?  If so I'd be curious too.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

brigittem

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 1
Re: how to set default row number in listings to 100 ?
April 16, 2010, 02:19:56 pm
yes, that was it : default 100 rows

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
Re: how to set default row number in listings to 100 ?
April 18, 2010, 03:54:12 am
As far as I know there is no configuration option for this.
So you have to overide the class CRM_Utils_Pager.

Copy /sites/all/modules/civicrm/CRM/Utils/Pager.php  to <your custum php files dir>/CRM/Utils/Pager.php
Change line 56
ROWCOUNT = 50
to:
ROWCOUNT = 100

You might need to clear cache for the proper presentation.
B.t.w. I think selecting 100 records puts extra load on your DB.


brigittem

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 1
Re: how to set default row number in listings to 100 ?
April 19, 2010, 04:30:44 am
Thanks

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • how to set default row number in listings to 100 ?

This forum was archived on 2017-11-26.