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) »
  • Editing Default Contact Information Displayed
Pages: [1]

Author Topic: Editing Default Contact Information Displayed  (Read 399 times)

vshura

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 1
  • CiviCRM version: 4.6.0
  • CMS version: Wordpress 4.1.1
Editing Default Contact Information Displayed
March 04, 2015, 11:25:58 am
Hi all.

Please excuse me if this is posted before, but I couldn't seem to find it.

Is there a way of editing what information is shown in the default profile when you look at a contact?  There's currently lots of extraneous information on each contacts page, such as 'employed by' and 'communication preferences'.  In fact, I don't need some of those blocks at all.

I'd imagine it's something to do with creating a profile with exactly the information I'd like on it, then changing a setting to display that profile rather than the default. Is this correct? What exactly would I change?

Thanks.
Sean.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Editing Default Contact Information Displayed
March 04, 2015, 11:29:42 am
The contact summary page can be configured at Administer -> Cusomize Date & Screens -> Display Preferences
Try asking your question on the new CiviCRM help site.

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Editing Default Contact Information Displayed
March 04, 2015, 11:35:48 am
Hi Sean,

First - are you actually using CiviCRM 3.2.1 like your profile says?  If so, some of what I'm going to suggest isn't going to work.

There are lots of ways to do what you're describing.  The quickest way is to go to Administer menu > Customize Data and Screens > Display Preferences.  From there you can kill a bunch of fields, the "Communications Preferences" block, and so forth.

The next easiest way doesn't exist yet!  A major goal of CiviCRM 5.0 is to allow this sort of fine-grained control over forms - but that's not here yet.

Finally - the Summary tab's display isn't controlled by a profile - there's a hard-coded template in CiviCRM that controls what displays.  You can either a) override the template (http://wiki.civicrm.org/confluence/display/CRMDOC/Theming+CiviCRM) , b) create an ".extra.tpl" file with some jQuery to hide/move existing fields (https://civicrm.org/blogs/dave-greenberg/now-its-easier-add-custom-behaviors-templates), or c) write an extension to inject that JavaScript.  All three of these approaches are fairly technical.  From a to c, they get more difficult but also require less work to recreate changes on upgrade.
 Summary tab, and all the other tabs on a contact record, aren't controlled by profiles.  They're hard-coded templates.  You can certainly change them, and it's something a beginner-level coder could do, but it's not something available to
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

vshura

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 1
  • CiviCRM version: 4.6.0
  • CMS version: Wordpress 4.1.1
Re: Editing Default Contact Information Displayed
March 04, 2015, 11:36:22 am
Great, that works, thanks. Is there a way, however, of removing the whole

Employer
Job Title
Nickname
Source


block?  I can't see it.

Sean.

vshura

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 1
  • CiviCRM version: 4.6.0
  • CMS version: Wordpress 4.1.1
Re: Editing Default Contact Information Displayed
March 04, 2015, 11:39:51 am
Ha, sorry JonGold. That's very out of date. I've updated my profile now. I'm using 4.5.7 on Wordpress 4.1.1.

And thanks for the full answer. I knew it could be done by editing the code, which I won't do just now.  I'll wait till (hopefully) 5.0 comes out and it's even better than the current excellent CiviCRM.

Sean.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Editing Default Contact Information Displayed

This forum was archived on 2017-11-26.