Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Removing Activities Tab at the Top

  1. #1
    rps1984 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    New York
    Posts
    62

    Default Removing Activities Tab at the Top

    When I select an Account, then click 'Create Note/Attachment' and then 'Full Form' I receive an error message that says I do not have access to view this page.

    This is because I removed the Activities tab that displays at the very top (under Studio > Configure Tabs > Set 'Activities' to 'Hide Tab')

    I don't want to see the Activities tab, but I still want to be able to see a note/attachment on the Accounts page (which requires the Activities module to NOT be hidden).

    I think what it comes down to, is that I need to edit a php file somewhere, and if tab == Activities, then don't comment out the code. If that isn't the course I should go, maybe I should keep the Activities tab hidden, and then just change something in the source code somewhere that no longer checks if the activities tab is hidden, yet still do not display the tab at the top, while allowing access to the sections inside the activities tab.

    Eh.. Hope that makes sense.
    Red Pepper Solutions LLC
    New York

  2. #2
    rps1984 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    New York
    Posts
    62

    Default Re: Removing Activities Tab at the Top

    One last bump before I submit a ticket...
    Red Pepper Solutions LLC
    New York

  3. #3
    anna is offline Sugar Community Member
    Join Date
    Jan 2007
    Location
    USA
    Posts
    81

    Default Re: Removing Activities Tab at the Top

    Quote Originally Posted by rps1984
    When I select an Account, then click 'Create Note/Attachment' and then 'Full Form' I receive an error message that says I do not have access to view this page.

    This is because I removed the Activities tab that displays at the very top (under Studio > Configure Tabs > Set 'Activities' to 'Hide Tab')

    I don't want to see the Activities tab, but I still want to be able to see a note/attachment on the Accounts page (which requires the Activities module to NOT be hidden).

    I think what it comes down to, is that I need to edit a php file somewhere, and if tab == Activities, then don't comment out the code. If that isn't the course I should go, maybe I should keep the Activities tab hidden, and then just change something in the source code somewhere that no longer checks if the activities tab is hidden, yet still do not display the tab at the top, while allowing access to the sections inside the activities tab.

    Eh.. Hope that makes sense.
    Try adding
    Code:
    $modules_exempt_from_availability_check['Notes'] = 'Notes';
    somewhere in the custom directory (application/Extension ...) .

  4. #4
    rps1984 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    New York
    Posts
    62

    Default Re: Removing Activities Tab at the Top

    somewhere in the custom directory (application/Extension ...) .
    - Where is this at?

    In the custom directory, I have: backup, include, modules, working. Then under modules I have Accounts and Contacts. Then under Accounts I have Language and Metadata, and then under metadata I have the listviewdefs.php file that doesn't look relevant. Am I in the right location?
    Red Pepper Solutions LLC
    New York

  5. #5
    anna is offline Sugar Community Member
    Join Date
    Jan 2007
    Location
    USA
    Posts
    81

    Default Re: Removing Activities Tab at the Top

    Quote Originally Posted by rps1984
    - Where is this at?

    In the custom directory, I have: backup, include, modules, working. Then under modules I have Accounts and Contacts. Then under Accounts I have Language and Metadata, and then under metadata I have the listviewdefs.php file that doesn't look relevant. Am I in the right location?
    It looks like you don't have any custom modules installed, so you would need to create the directories and file manually.
    Under custom/ directory, create the following directory structure and file: application/Ext/Language/en_us.lang.ext.php and put the code in there.
    This file gets rewritten automatically if you load any modules, so your changes might get overwritten at a later point.
    You could also try creating a file with that entry under: Extension/application/Ext/Language/en_us.SOME_NAME.php and then run the Rebuild Extensions under Admin/Repair. This should write the contents into the en_us.lang.ext.php automatically, at least this is what happens during module installation.
    Hope this helps

  6. #6
    rps1984 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    New York
    Posts
    62

    Default Re: Removing Activities Tab at the Top

    If I am only using some of the default modules, then how come I would need to manually create a directory?
    Red Pepper Solutions LLC
    New York

  7. #7
    anna is offline Sugar Community Member
    Join Date
    Jan 2007
    Location
    USA
    Posts
    81

    Default Re: Removing Activities Tab at the Top

    Quote Originally Posted by rps1984
    If I am only using some of the default modules, then how come I would need to manually create a directory?
    This is just a more 'upgrade-safe' way, and that's where mine were put when I installed my custom module so I figured it would be a good place for it. You can add the entry anywhere you like, it should work too.

  8. #8
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Removing Activities Tab at the Top

    I have the same problem in that I want to hide the tab for a custom module but still get the associated sub panel

    I tried adding $modules_exempt_from_availability_check['zz_jobd'] = 'Job Details';

    But that made no difference

    Any other ideas?

  9. #9
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Removing Activities Tab at the Top

    Hi, all.

    You have to create an extended layoutdefs under acconts and any other module that has activities subpanel and insert the code:

    PHP Code:
    global $modules_exempt_from_availability_check;
    $modules_exempt_from_availability_check['Notes'] = 'Notes'

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    e-mail: info@lampadaglobal.com

  10. #10
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Removing Activities Tab at the Top

    Thanks


    I did the following and it worked

    $modules_exempt_from_availability_check['your module name']='Your module name';

    in include/utils/security_utils.php

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Removing Shortcut Panels under Shortcuts menu
    By Echoreef in forum Developer Help
    Replies: 1
    Last Post: 2006-08-21, 05:26 AM
  2. Why activities tab only shows calls?
    By prai in forum Help
    Replies: 0
    Last Post: 2006-05-03, 08:09 AM
  3. Activities Tab - My Items is not sticky
    By atheimer98 in forum Developer Help
    Replies: 1
    Last Post: 2006-03-28, 07:48 PM
  4. rebuild activities tab
    By krokogras in forum Feature Requests
    Replies: 0
    Last Post: 2005-08-25, 02:08 PM

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
  •