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) »
  • showing contact type icons on custom searches
Pages: [1]

Author Topic: showing contact type icons on custom searches  (Read 1027 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
showing contact type icons on custom searches
January 26, 2012, 06:59:06 pm
I have developed a number of custom searches, and would like the output to include the icon associated with the contact type/subtype, just like a regular search. What is the best approach for this?  Custom .tpl file? or if I include the subtype in the results will Civi display it automatically.
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

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: showing contact type icons on custom searches
January 26, 2012, 10:36:28 pm
Quote
Custom .tpl file? or if I include the subtype in the results will Civi display it automatically.
Since you already have your own custom search, IMO using custom template for each of the searched might be good approach.

Quote
<div class="icon crm-icon Individual-icon" title="Individual"></div>
Above div is used to show the icons, so you need to generate above div for each row in your search

HTh
Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • showing contact type icons on custom searches

This forum was archived on 2017-11-26.