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) »
  • Group Display in Advanced Search
Pages: [1]

Author Topic: Group Display in Advanced Search  (Read 1004 times)

merich

  • Guest
Group Display in Advanced Search
July 07, 2010, 02:12:32 pm
I have all ready been enbows deep in Civi and have accomplished my goals without much headaches, until now.

I am trying to accomplish 2 things for my client.

a. reorder the groups in the advanced search
b. apply hierarchical formatting to the groups/tags similar to how the tags display in the add new contact page.

Can anyone point me in the right direction?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Group Display in Advanced Search
July 07, 2010, 11:50:32 pm
Group and Tag form elements are build in CRM/Contact/Form/Search/Criteria.php basic(), so you might have to modify the array that is passed to select elements to reorder or display in hierarchical manner.

HTh
Kurund
Found this reply helpful? Support CiviCRM

merich

  • Guest
Re: Group Display in Advanced Search
July 08, 2010, 06:08:57 am
Thanks Kurund,

I am able to find and modify that array, however the data I need is not present, Where could I find the actual function that does the select to build that array?

Thanks,

Mark

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Group Display in Advanced Search
July 08, 2010, 07:04:42 am
Mark,

I guess you will have to debug the code, for eg tags

Quote
$contactTags = CRM_Core_BAO_Tag::getTags( );

If you are not familiar with PHP, I would suggest hiring someone from http://civicrm.org/professional list.

HTh
Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Group Display in Advanced Search

This forum was archived on 2017-11-26.