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) »
  • Hide functions from contact record?
Pages: [1]

Author Topic: Hide functions from contact record?  (Read 1160 times)

linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
Hide functions from contact record?
February 06, 2008, 11:43:21 am
Is there any way to hide the "actions" links from all contact records?

I don't want my users to see "Send Email | Schedule Meeting | Schedule Call | Log a Meeting |  Log a Call" because this functionality is not used in our organization.

Simple way to hide them?

linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
Re: Hide functions from contact record?
February 06, 2008, 12:13:23 pm
I commented this section from sites/all/modules/civicrm/templates/CRM/Contact/Page/View/ActivityLinks.tpl:

Code: [Select]
  {*
<a href="{crmURL p='civicrm/contact/view/activity' q="activity_id=1&action=add&reset=1&cid=`$contactId`"}"><img src="{$config->resourceBase}i/meeting.gif" alt="{ts}Schedule Meeting{/ts}"/></a>&nbsp;
   <a href="{crmURL p='civicrm/contact/view/activity' q="activity_id=1&action=add&reset=1&cid=`$contactId`"}">{ts}Schedule a Meeting{/ts}</a>&nbsp;&nbsp;
   <a href="{crmURL p='civicrm/contact/view/activity' q="activity_id=2&action=add&reset=1&cid=`$contactId`"}"><img src="{$config->resourceBase}i/tel.gif" alt="{ts}Schedule Call{/ts}"/></a>&nbsp;
   <a href="{crmURL p='civicrm/contact/view/activity' q="activity_id=2&action=add&reset=1&cid=`$contactId`"}">{ts}Schedule a Call{/ts}</a>&nbsp;&nbsp;
   <a href="{crmURL p='civicrm/contact/view/activity' q="activity_id=1&action=add&reset=1&cid=`$contactId`&log=1"}"><img src="{$config->resourceBase}i/meeting.gif" alt="{ts}Log a Meeting{/ts}"/></a>&nbsp;
   <a href="{crmURL p='civicrm/contact/view/activity' q="activity_id=1&action=add&reset=1&cid=`$contactId`&log=1"}">{ts}Log a Meeting{/ts}</a>&nbsp;&nbsp;
   <a href="{crmURL p='civicrm/contact/view/activity' q="activity_id=2&action=add&reset=1&cid=`$contactId`&log=1"}"><img src="{$config->resourceBase}i/tel.gif" alt="{ts}Log a Call{/ts}"/></a>&nbsp;
   <a href="{crmURL p='civicrm/contact/view/activity' q="activity_id=2&action=add&reset=1&cid=`$contactId`&log=1"}">{ts}Log a Call{/ts}</a>&nbsp;&nbsp;
   *}

Which had the effect of hiding the links. HOWEVER, as this involved editing core files, I would like to avoid it. Any way to do this without editing core files would be grand.

Thanks!

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: Hide functions from contact record?
February 07, 2008, 04:47:04 am

check:

http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens

this allows you to replace the default templates with your own templates. You can also use the same trick to modify the search listing and hide the country field (from your other forum post)

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

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

This forum was archived on 2017-11-26.