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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Custom Field "Picture" in Selector.tpl
Pages: [1]

Author Topic: Custom Field "Picture" in Selector.tpl  (Read 1480 times)

maiasiber

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
Custom Field "Picture" in Selector.tpl
October 10, 2008, 10:34:12 am
Hello,

I'm trying to customize Selector.tpl for all of my searches and I want to include a custom field called "Picture" (row "custom_field" with id# "7" in my MySQL database)... I'm I found where I need to place this information in selector.tpl:

<td>{$row.city}</td>
              <td>{$row.state_province}</td>
              <td>{$row.country}</td>

I'm just wondering what the correct documentation is for putting a custom field in a column the search results table?

Any help will be TREMENDOUSLY appreciated!!

-Maia

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: Custom Field "Picture" in Selector.tpl
October 10, 2008, 12:50:37 pm
IMO, instead of modifying templates directly you should use "Custom Templates" check: http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens

HTH

Kurund
Found this reply helpful? Support CiviCRM

maiasiber

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
Re: Custom Field "Picture" in Selector.tpl
October 10, 2008, 01:12:44 pm
Ok, I will use the custom templates method.  However, I still do not know what code to use to add the profile picture column... It is automatically made when using profiles, but I want to use a specific profile as my Default search results view table..  Is there a way to assign a profile to be the default search results view??

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: Custom Field "Picture" in Selector.tpl
October 10, 2008, 01:42:01 pm
You can configure profile for search mode and use that as your primary search.

Check:
http://drupal.demo.civicrm.org/civicrm/profile?reset=1&gid=1
http://wiki.civicrm.org/confluence/display/CRMDOC/Profiles

Kurund

Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Custom Field "Picture" in Selector.tpl

This forum was archived on 2017-11-26.