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) »
  • Hiding sections in contact summary?
Pages: [1]

Author Topic: Hiding sections in contact summary?  (Read 1686 times)

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Hiding sections in contact summary?
December 19, 2008, 02:09:57 pm
Is it possible to hide or disable the following sections in the contact record summary:

1) Demographics

2) Communication preferences

I do not need either of these - I've unchecked/disabled them in the Global config admin but they are still showing when I view a contact record.

Additionally can you hide the Send an Email, Phone and Meeting / Other Activities icons?

Using CiviCRM 2.0.6 and Drupal 5.14.

Thanks in advance.

-backdrifting

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: Hiding sections in contact summary?
December 19, 2008, 02:49:15 pm

I dont think there are settings to hide it from the contact view screen in 2.0 (in 2.1 we use the same settings as the edit options)

Your best bet is to customize the tpl templates/CRM/Contact/Page/View/Tabbed.tpl and hide those sections. The same goes for the various activity icons

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

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Hiding sections in contact summary?
December 20, 2008, 06:07:02 am
That works - I can hide the sections, but then I get the following pop-up errors whether I comment out or delete those sections in my custom template.  The new template loads with the sections hidden but then these pop-ups show:

showBlocks array item not in .tpl = demographics_show

showBlocks array item not in .tpl = demographics

Where are these block arrays?  What file are they in?  I don't see them in my Tabbed.tpl file.

-backdrifting

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: Hiding sections in contact summary?
December 20, 2008, 06:21:49 am

i would keep two empty divs with those ids in there. easier than modifying the code. The blocks are defined in the corresponding php files

CRM/Contact/Page/View/Tabbed.php, line 296 or so

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

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Hiding sections in contact summary?
December 20, 2008, 07:27:09 pm
Perfect.  That worked. Thanks Lobo.

-backdrifting

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Hiding sections in contact summary?

This forum was archived on 2017-11-26.