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

Thread: Remove Global links of sugar

  1. #1
    akkimca's Avatar
    akkimca is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    270

    Question Remove Global links of sugar

    Hi,
    i m using Sugarcrm 5.2 0k and i want to remove "Training" & "About" link of Global link.

    i read this articles : http://developers.sugarcrm.com/docs/...ing Sugar.html


    but didnt find any help.. this post isnt working for me..

    so anyone tell me how to remove links in sugar ????

    thanks in advance
    Regards
    ==========================
    akkimca
    Work as Sugarcrm Freelancer
    Feel free to Find me in skype. Its my pleasure to talk with you.
    ID: akshay.biztech

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Remove Global links of sugar

    In versions < 5.5 this is a core hack in /include/globalControlLinks.php.
    There you must edit this file directly.

    Since version 5.5 you can customize the global control links by writing an own /custom/include/globalControlLinks.php which is called at the end of /include/globalControlLinks.php.

    So you could solve your problem by writing a /custom/include/globalControlLinks.php with following content:

    PHP Code:
    <?php
    unset($global_control_links['training']);
    unset(
    $global_control_links['about']);
    ?>
    Last edited by kuske; 2010-01-09 at 07:53 AM.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    akkimca's Avatar
    akkimca is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    270

    Question Re: Remove Global links of sugar

    Hi kuske,

    thanks for reply....

    i m using sugar Version 5.2.0k.
    if i make a change directly in include/globalControlLinks.php file dn it is not a upgrade safe so any other option is available dt make this change in upgrade safe manner ?????

    pls help
    Regards
    ==========================
    akkimca
    Work as Sugarcrm Freelancer
    Feel free to Find me in skype. Its my pleasure to talk with you.
    ID: akshay.biztech

  4. #4
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Remove Global links of sugar

    In my humble opinion there is no chance to do that in an upgrade safe way in 5.2.

    Anyone else other ideas?
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  5. #5
    akkimca's Avatar
    akkimca is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    270

    Talking Re: Remove Global links of sugar

    thank for reply............
    Regards
    ==========================
    akkimca
    Work as Sugarcrm Freelancer
    Feel free to Find me in skype. Its my pleasure to talk with you.
    ID: akshay.biztech

  6. #6
    abhax's Avatar
    abhax is offline Senior Member
    Join Date
    Jun 2010
    Location
    India
    Posts
    65

    Smile Re: Remove Global links of sugar

    Hi,

    You can do one thing that will make it upgrade safe...

    <sugarROOT>/include/globalControlLinks.php

    include these lines
    if (sugar_is_file('custom/include/globalControlLinks.php')) {
    include('custom/include/globalControlLinks.php');
    }


    and now in your <sugarROOT>/custom/include/ make the globalControlLinks.php file and just unset the links there instead of commenting or removing from the main file.

    what this will do when you upgarde to sugar 5.5 it searches for the file in custom/include/globalControlLinks.php

    The file will already be present and we need not do the same thing again after upgade....

  7. #7
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Remove Global links of sugar

    Yes that's another way, but really upgrade safe is it not, only half upgrade safe...
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  8. #8
    abhax's Avatar
    abhax is offline Senior Member
    Join Date
    Jun 2010
    Location
    India
    Posts
    65

    Default Re: Remove Global links of sugar

    Quote Originally Posted by kuske View Post
    Yes that's another way, but really upgrade safe is it not, only half upgrade safe...
    Hi,

    Half upgrade safe?
    when we upgrade what will happen? which file will be removed?
    If It Is To Be, It Is Up To Me

  9. #9
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Remove Global links of sugar

    After an upgrade you must rewrite the code in

    <sugarROOT>/include/globalControlLinks.php

    PHP Code:
    include these lines 
    if (sugar_is_file('custom/include/globalControlLinks.php')) {
    include(
    'custom/include/globalControlLinks.php');

    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  10. #10
    abhax's Avatar
    abhax is offline Senior Member
    Join Date
    Jun 2010
    Location
    India
    Posts
    65

    Default Re: Remove Global links of sugar

    Please forgive my ignorance if im wrong...

    Aint these lines the part of core file when we upgrade to 5.5 or above in the globalControlLink.php??
    If It Is To Be, It Is Up To Me

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. remove top links
    By ksk in forum Help
    Replies: 2
    Last Post: 2009-04-30, 09:39 AM
  2. Shortcuts Menu Links Labels - Global Change?
    By erica26 in forum Developer Help
    Replies: 3
    Last Post: 2009-03-31, 11:29 PM
  3. Remove links for users
    By fbrites in forum Help
    Replies: 2
    Last Post: 2008-06-23, 09:02 AM
  4. Replies: 0
    Last Post: 2006-03-29, 03:57 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
  •