CiviCRM Community > Developer Discussion
Pagination in relationship tab
(1/1)
sushant1431:
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:
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+
kung:
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:
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
kung:
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.
Navigation
[0] Message Index
Go to full version