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) »
  • Configure Dashboard
Pages: [1]

Author Topic: Configure Dashboard  (Read 905 times)

roberto.salvo

  • Guest
Configure Dashboard
September 29, 2010, 06:04:40 am
Hi Guys,
is it possible to set that only the administrator would be able to see the "configure dashboard" button, while not the coordinators and the operators?

thx

rob

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: Configure Dashboard
October 01, 2010, 08:34:42 am
You will have to customize the template and use custom template feature. Below code should work should show that button only for the contact with "administer CiviCRM" permission

Quote
Index: templates/CRM/Contact/Page/DashBoardDashlet.tpl
===================================================================
--- templates/CRM/Contact/Page/DashBoardDashlet.tpl   (revision 29782)
+++ templates/CRM/Contact/Page/DashBoardDashlet.tpl   (working copy)
@@ -26,9 +26,10 @@
 {include file="CRM/common/dashboard.tpl"}
 {include file="CRM/common/openFlashChart.tpl"}
 <div class="crm-submit-buttons">
+{if (call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') ) }
 <a href="javascript:addDashlet( );" class="button show-add">
    <span><div class="icon settings-icon"></div>{ts}Configure Your Dashboard{/ts}</span></a>
-
+{/if}
 <a style="display:none;" href="{crmURL p="civicrm/dashboard" q="reset=1"}" class="button show-done" style="margin-left: 6px;">
    <span><div class="icon check-icon"></div>{ts}Done{/ts}</span></a>

HTh
Kurund
Found this reply helpful? Support CiviCRM

IsraelCater

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5
Re: Configure Dashboard
May 03, 2014, 04:10:44 pm
I would only Administrator access to see "Configure Your Dashboard". I am looking for a custom template for Drupal 7. Whose got the help out there?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Configure Dashboard

This forum was archived on 2017-11-26.