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) »
  • search on Legal Name/SIC ?
Pages: [1]

Author Topic: search on Legal Name/SIC ?  (Read 1813 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
search on Legal Name/SIC ?
October 28, 2008, 05:28:13 pm
I'm trying to use these fields but:

1) I can't search on them
2) They aren't displayed on the view (the only way of seeing is to edit)

Is there an option to switch on somewhere to make them useful ? Do I need to modify the templates ?

Alternatively, is there a way of not putting them into the edit form (I'd rather have them as custom fields, so I can view/search them)

X+

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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: search on Legal Name/SIC ?
October 28, 2008, 07:52:22 pm
You can easily add them to the Contact Summary ("view") since they are available to the template. (I figured this out by enabling Debugging and then adding &smartyDebug=1 to the URL while viewing an organization). So you can create a custom copy of templates/CRM/Contact/Page/View/Tabbed.tpl and add:

{$legal_name}
{$sic_code}

to it (with conditionals if you want)...
Protect your investment in CiviCRM by  becoming a Member!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: search on Legal Name/SIC ?
October 28, 2008, 11:57:59 pm
Thanks,

Got a patch to improve the view as suggested (with the ifs):
http://issues.civicrm.org/jira/browse/CRM-3764

As for the search, is that easy too (could have figured out the template on my own, but the search is a wee bit harder to find your way into ;)

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

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: search on Legal Name/SIC ?
October 29, 2008, 11:37:55 am

patch applied to 2.1

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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: search on Legal Name/SIC ?
October 30, 2008, 11:00:43 am
I suspect search fix is not too easy - might need to go custom search route for that since the search/query code e is pretty complex to hack.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • search on Legal Name/SIC ?

This forum was archived on 2017-11-26.