Results 1 to 8 of 8

Thread: Sugar CE 6: link in iframe

  1. #1
    gavu is offline Member
    Join Date
    Feb 2011
    Posts
    14

    Default Sugar CE 6: link in iframe

    Hi, sorry if question is already answered,

    i need to post a link in the navigation bar that opens an existing page e.g. http://www.google.com "inside" the system, like an iframe or something like that (available by default for all users if possible)

    i have asked google 1000 times, tried creating a module e.g. test but is till get a button "create test" and only then the iframe is visible.

    can i modify that in any way? or is there another solution that i haven't found until now?

    Thanks,
    gavu

  2. #2
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Sugar CE 6: link in iframe

    Here a solution for links in header (see screenshot). This should be written in
    custom/include/globalControlLinks.php
    This creates no iframe but should solve your problem ...


    <?php
    global $current_user;

    // Some links only for admin user
    if (is_admin($current_user)) {
    $sub_menu['admintools']['studio'] = array(
    'Studio' => 'index.php?module=ModuleBuilder&action=index&type= studio');
    $sub_menu['admintools']['module_loader'] = array(
    'Module Loader' => 'index.php?module=Administration&action=UpgradeWiz ard&view=module');
    $sub_menu['admintools']['module_builder'] = array(
    'Module Builder' => 'index.php?module=ModuleBuilder&action=index&type= mb');
    $global_control_links['admintools'] = array(
    'linkinfo' => array('Admin-Tools' => '#'),
    'submenu' => $sub_menu['admintools']
    );

    // Alternativ solution without submenu
    /*
    $global_control_links['Studio'] = array (
    'linkinfo' => array (
    'Studio' => 'index.php?module=ModuleBuilder&action=index&type= studio'
    ),
    'submenu' => ''
    );
    $global_control_links['Module_Loader'] = array (
    'linkinfo' => array (
    'Module Loader' => 'index.php?module=Administration&action=UpgradeWiz ard&view=module'
    ),
    'submenu' => ''
    );
    $global_control_links['Module Builder'] = array (
    'linkinfo' => array (
    'Module Builder' => 'index.php?module=ModuleBuilder&action=index&type= mb'
    ),
    'submenu' => ''
    );
    */
    }

    $sub_menu['companylinks']['google'] = array(
    'Google'=>'http://www.google.com');
    $sub_menu['companylinks']['sugarcrm'] = array(
    'SugarCRM-Home'=>'http://www.sugarcrm.com');

    $global_control_links['companylinks'] = array(
    'linkinfo' => array('Company Links' => '#'),
    'submenu' => $sub_menu['companylinks']
    );
    ?>
    Attached Images Attached Images  
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  3. #3
    gavu is offline Member
    Join Date
    Feb 2011
    Posts
    14

    Default Re: Sugar CE 6: link in iframe

    thanks for the quick reply, it works, just copied the code and voila... but, and there's a big but:

    1. it should (if possible) appear in this menu (see attachment)
    2. it opens in the same window instead of an iframe or some kind of wrapper

    any sugestions?

    Thanks
    Attached Images Attached Images  

  4. #4
    gavu is offline Member
    Join Date
    Feb 2011
    Posts
    14

    Default Re: Sugar CE 6: link in iframe

    the solution works great, just one question, is it possible to define target? _blank?
    i would like the pages to open in new tabs

    $global_control_links['Studio'] = array (
    'linkinfo' => array (
    'Studio' => 'index.php?module=ModuleBuilder&action=index&type= studio'
    ),
    'submenu' => ''
    );

  5. #5
    gavu is offline Member
    Join Date
    Feb 2011
    Posts
    14

    Default Re: Sugar CE 6: link in iframe

    found the solution

    $global_control_links['google'] = array(
    'linkinfo' => array (
    'google' => ' javascript:void window.open(\'http://www.google.com\')'),
    'submenu' => ''
    );

    it was right in front of my eyes

  6. #6
    markv is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    39

    Default Re: Sugar CE 6: link in iframe

    I love your solution and implemented in on our CRM install. Thanks!

    This used to be a default function of Sugar (it was placed besides the tabs though). Is has been embeded in a module since Sugar 5.x but i don't know the name of the module anymore.

    Did a search on 'iframe' and this is the thread:
    http://www.sugarcrm.com/forums/showt...ghlight=iframe

    And this is the module
    http://www.sugarforge.org/projects/mysites/

    But it does not work in sugar 6 (incompatible, what a shame).
    Last edited by markv; 2011-03-17 at 09:50 PM.
    Working at VoIP provider Voys
    Tweeting @markv (nl)
    Loving SugarCRM more with every update.

  7. #7
    markv is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    39

    Default Re: Sugar CE 6: link in iframe

    wichard altered the My Sites module to be 6.x compatible! http://www.sugarcrm.com/forums/showp...50&postcount=4
    Working at VoIP provider Voys
    Tweeting @markv (nl)
    Loving SugarCRM more with every update.

  8. #8
    alefevre is offline Junior Member
    Join Date
    Aug 2011
    Posts
    2

    Default Re: Sugar CE 6: link in iframe

    I have try to install Mysites without success on version 6.2.3

    Could someone help me?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SQL Link to Sugar
    By sbowling in forum General Discussion
    Replies: 2
    Last Post: 2011-01-05, 07:40 PM
  2. My Portal Link - removing iFrame
    By john.phortse in forum Help
    Replies: 0
    Last Post: 2009-09-13, 10:05 PM
  3. Enable Tab Link of iFrame to All Users
    By ashboss in forum Developer Help
    Replies: 7
    Last Post: 2009-08-07, 02:15 AM
  4. How to create iframe in sugar
    By wisew in forum General Discussion
    Replies: 3
    Last Post: 2009-08-05, 02:01 PM
  5. PHP page in portal iframe, link to accounts page
    By korazy in forum Developer Help
    Replies: 3
    Last Post: 2007-06-06, 10:37 PM

Tags for this Thread

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
  •