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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Pagination in relationship tab
Pages: [1]

Author Topic: Pagination in relationship tab  (Read 1166 times)

sushant1431

  • Guest
Pagination in relationship tab
June 02, 2010, 04:57:19 am
 In the relationship i want to make pagination(Coz in my site there is huge of relationships), how to do that ??? http://drupal.demo.civicrm.org/civicrm/contact/view?reset=1&cid=763

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Pagination in relationship tab
June 02, 2010, 06:23:55 am
How many do you have ?

Not out of the box to my knowledge. You will have to modify the code or the template. If it's ok to fetch them all and paginate on the client, you have really nice jquery plugins that are easy to integrate.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

kung

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 5
  • CMS version: Drupal 6 or 7
  • MySQL version: 5
  • PHP version: 5
Re: Pagination in relationship tab
June 25, 2012, 09:26:25 am
Hi.  I'm having the same problem -- 24k relationships.  I can search based on relationship just fine, because the results are returned paginated, but in the contact view "relationships" tab they're not.  How feasible would it be for me to (1) locate your pagination "module" that is used in search results and (2) add it to the tpl for the relationship tab?
Is that a reasonable way to go?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Pagination in relationship tab
June 25, 2012, 10:03:25 am

1. It is fairly doable, i dont think too complex either. However it does require php/mysql/jquery skills

2. I would use the jquery datagrid widget for something like this, which is what we've been using for larger data sets where we require pagination (like groups), check CRM/Group/*

3. If i had to guess this is a 15-30 hour project. I suspect as we deploy that pattern in more places this time will reduce significantly

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

kung

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 5
  • CMS version: Drupal 6 or 7
  • MySQL version: 5
  • PHP version: 5
Re: Pagination in relationship tab
June 26, 2012, 08:17:02 am
Thanks very much.  I'm going to try out the datagrid approach.  If/when I get it working I'll post my code and notes here.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Pagination in relationship tab

This forum was archived on 2017-11-26.