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) »
  • Modify Default Search Columns
Pages: [1]

Author Topic: Modify Default Search Columns  (Read 779 times)

messy

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.05
  • CMS version: Drupal 7.7
  • MySQL version: 5.0.5
  • PHP version: 5.3.5
Modify Default Search Columns
May 16, 2010, 02:40:15 pm
Hey guys,

I have written a custom search to return columns other than the default. Having tested it I am now looking to set these columns as the default for Basic, Advanced and Search Builder results.

I understand how to do this using profiles, but the data I'm returning requires some joins not supported by profiles. Where in the code can I modify the default search columns to match my custom search?

Many thanks in advance, and thank you for such a wonderful product.

Cheers

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: Modify Default Search Columns
May 16, 2010, 08:20:15 pm

check:

CRM/Contact/Selector.php, function getRows

however that uses the default query engine, so u can send it to your specific query engine if needed. ping us on irc if u'd like to chat more

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Modify Default Search Columns

This forum was archived on 2017-11-26.