Results 1 to 8 of 8

Thread: Where are top right corner links specified?

  1. #1
    Systems Navigator is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    195

    Default Where are top right corner links specified?

    Hi there,

    Does anyone know where the links in the top right corner of the sugar screen are specified? I mean the links my account, employees, get help, about and pagestyle. I couldn't find them in modules/home/index.php. I would like to remove (comment out) one of these links.


    Thanks!!

    OS: Windows 2003 Server R2
    Sugar: Version 5.5.1 Pro
    Webserver: apache 2.0.59
    PHP: Version 5.2.5
    Mysql: version 5.0.45

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

    Default Re: Where are top right corner links specified?

    Quote Originally Posted by Systems Navigator View Post
    Hi there,

    Does anyone know where the links in the top right corner of the sugar screen are specified? I mean the links my account, employees, get help, about and pagestyle. I couldn't find them in modules/home/index.php. I would like to remove (comment out) one of these links.


    Thanks!!

    OS: Windows 2003 Server R2
    Sugar: Version 5.5.1 Pro
    Webserver: apache 2.0.59
    PHP: Version 5.2.5
    Mysql: version 5.0.45
    /include/globalControlLinks.php

    if you are using 5.5.1 you can create a file custom/include/globalControlLinks.php to unset options
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  3. #3
    blackradius is offline Senior Member
    Join Date
    Apr 2010
    Posts
    41

    Default Re: Where are top right corner links specified?

    include/globalControlLinks.php

  4. #4
    Systems Navigator is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    195

    Default Re: Where are top right corner links specified?

    Thanks a lot!

    Mainly the custom possibility is helpful, since this will be upgrade save!

    Thanks people!!

  5. #5
    Systems Navigator is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    195

    Default Re: Where are top right corner links specified?

    Hi there again,

    I tried to copy my changed file include/globalControlLinks.php to custom/include/globalControlLinks.php

    However this does not seem to work like that. Because after I copied this file to that location I couldn't get Sugar in my browser anymore. It says connection problems at that moment. Do I have to do something more to let this work in an upgrade safe way?

    Thanks for your help!

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

    Default Re: Where are top right corner links specified?

    You dont need to copy the file

    if you look in GlobalControllinks in 5.51 you will see

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

    so the custom file is an addon not a replacement

    in the custom file you can unset or change setting set in the main file
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  7. #7
    Systems Navigator is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    195

    Default Re: Where are top right corner links specified?

    Hello there,

    Thanks for your help, but I am still not getting it.

    I created the custom php field and entered the following code:

    <?php
    if (is_admin($current_user)) $global_control_links['employees'] = array(

    'linkinfo' => array($app_strings['LBL_EMPLOYEES']=> 'index.php?module=Employees&action=index'),
    'submenu' => ''
    );
    ?>

    However this does not give any result. But If I enter the additional part
    if (is_admin($current_user))
    To the orginal file, it works fine.

    What am I doing wrong?

    Thanks!

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

    Default Re: Where are top right corner links specified?

    Quote Originally Posted by Systems Navigator View Post
    Hello there,

    Thanks for your help, but I am still not getting it.

    I created the custom php field and entered the following code:

    <?php
    if (is_admin($current_user)) $global_control_links['employees'] = array(

    'linkinfo' => array($app_strings['LBL_EMPLOYEES']=> 'index.php?module=Employees&action=index'),
    'submenu' => ''
    );
    ?>

    However this does not give any result. But If I enter the additional part
    if (is_admin($current_user))
    To the orginal file, it works fine.

    What am I doing wrong?

    Thanks!
    What you need to do in the custom file is unset the item if the user is not admin

    so try

    if (!is_admin($current_user)) {
    unset($global_control_links['employees']);
    }
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Links in ListView
    By markoa in forum Developer Help
    Replies: 3
    Last Post: 2009-02-25, 05:25 AM
  2. Links in SugarCRM
    By barrettp in forum Help
    Replies: 1
    Last Post: 2008-09-17, 09:20 PM
  3. Links as popups
    By michamamo2 in forum Help
    Replies: 1
    Last Post: 2008-09-15, 07:32 PM
  4. Change Tab Links?
    By mrwilson in forum Help
    Replies: 9
    Last Post: 2006-05-08, 07:25 PM
  5. Help with Some Shortcut Links
    By mody1983 in forum Help
    Replies: 1
    Last Post: 2006-03-09, 02:26 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
  •