Results 1 to 6 of 6

Thread: Hide 50% Activities Subpanel

  1. #1
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Hide 50% Activities Subpanel

    Hi there

    I would like to hide the Activities subpanel, but not all of it, as I would like to keep the "add atachements" (Notes) functionality. This means that would like to hide the button that will allow users to create calls, tasks and meetings directly from this subpanel

    I have tried not giving access to these modules by user role, however the buttons and subpanels still appear and only get a "non-access rights message" when I click on the button.

    What I mean , is that I just need a set of users to add notes and attachments to Contacts and Accounts, but would not like them to see these buttons to create calls meetings and tasks from this subpanel.

    Is this possible??

    Also would like to know if it is possible to disable this subpanel for a given user_role, or it is only possible to do it for "all users". I am saying this as I know there is the chance to enable/disable some buttons in the tpl files bu including the
    PHP Code:
    {if ($IS_ADMIN)}<code> {/if}
    in de tpl file.

    Thanks a lot in advance

    FYI: I am using SugarCE 5.5.2 on Windows

  2. #2
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Re: Hide 50% Activities Subpanel

    Hi all

    I saw 18 people checking this post. Someone that can help me hiding the buttons New Call -New Meeting - New Task on the Activity subpanel in the Accounts detail screen??

    Thanks a lot in advance

  3. #3
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Hide 50% Activities Subpanel

    Hello,

    Create a file under custom/Extension/modules/Accounts/Ext/Layoutdefs/<FILENAME>.php

    and add following code into it,
    PHP Code:
    $layout_defs["Accounts"]["subpanel_setup"]["activities"]["top_buttons"] = array(array('widget_class' => 'SubPanelTopComposeEmailButton'),); 
    Then do Quick Repair & Rebuild.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  4. #4
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Re: Hide 50% Activities Subpanel

    Hello David

    Thanks a lot for the reply. I have done what you suggested, and worked... will try the same to hide the "Menber Organizations".

    Other question would be... is it possible to do this based on the role of the user?

    Thanks once more

  5. #5
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Re: Hide 50% Activities Subpanel

    Hi David

    I have tried this to hide the Member Organizations subform in Accounts.

    In custom/Extension/modules/Ext/Accounts/Layoutdefs/_overrideAccountContactsForAccounts.php

    I have included the line

    PHP Code:
    unset($layout_defs['Leads']['subpanel_setup']['member organizations']); 
    However seems that do not work to hide the member organizations in Accounts.

    Do you see anything I am doing wrong?

    Thanks a lot

  6. #6
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default SOLVED Hide 50% Activities Subpanel

    Hi David

    Dont worry I found in the forum that you replied to a similar issue in the post

    http://www.sugarcrm.com/forums/showt...979#post230979

    and now works fine for me.

    Cheers

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. hide subpanel
    By nanduruchi in forum Developer Tools
    Replies: 4
    Last Post: 2010-10-15, 08:23 AM
  2. Hide subpanel?
    By ramji123 in forum Developer Help
    Replies: 0
    Last Post: 2010-07-29, 12:27 PM
  3. Hide subpanel?
    By ramji123 in forum Developer Help
    Replies: 0
    Last Post: 2009-11-30, 09:41 AM
  4. Hide subpanel data
    By marketadvantage in forum Developer Help
    Replies: 1
    Last Post: 2009-04-21, 01:38 AM
  5. hide tabs but allow subpanel
    By ff76 in forum Help
    Replies: 1
    Last Post: 2009-03-17, 11:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •