Results 1 to 3 of 3

Thread: Open URL in Different Windows from SugarCRM

  1. #1
    bleggee is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    58

    Question Open URL in Different Windows from SugarCRM

    I have a Field Type "URL" in one of my Modules. When Clicked, it opens the corresponding website in the same windows as Sugar. Does anyone know if there is a way to force it to open in a NEW Browser window ... By changing Sugar code or settings ... that is, WITHOUT changing the Defaults of the Browser?

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Open URL in Different Windows from SugarCRM

    In the custom/modules/YOURMOD/metadata/detailviewdefs.php file the field and add the following code right in that field definition:
    PHP Code:
              'displayParams' => 
              array (
                
    'link_target' => '_blank',
              ), 
    Then run Repair & Rebuild on that module to clear the cache.

  3. #3
    hileon's Avatar
    hileon is offline Sugar Team Member
    Join Date
    May 2008
    Location
    Shanghai
    Posts
    187

    Default Re: Open URL in Different Windows from SugarCRM

    you change the view file at custom\modules\your module\metadata\detailviewdefs.php, by add a link_target prams to it, like the follow.
    Then go to admin Repair and do a "Clear Template Data Cache" for your module.
    PHP Code:
              array (
                
    'name' => 'website_c',
                
    'label' => 'LBL_WEBSITE',
                
    'displayParams' => 
                array (
                  
    'link_target' => '_blank',
                ),
              ), 
    Quote Originally Posted by bleggee View Post
    I have a Field Type "URL" in one of my Modules. When Clicked, it opens the corresponding website in the same windows as Sugar. Does anyone know if there is a way to force it to open in a NEW Browser window ... By changing Sugar code or settings ... that is, WITHOUT changing the Defaults of the Browser?
    Open source, open data, open life in the commercial environment.



Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 10
    Last Post: 2009-03-13, 08:39 AM
  2. sugarcrm-OS-4.5.1b-windows-installer.exe Download
    By alexsabreit in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2008-03-18, 05:01 PM
  3. help! sugarcrm transfer..windows to linux
    By jeysipi in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2007-03-06, 08:31 AM
  4. Upgrade from Open source to Pro on WIndows
    By noelervine in forum Help
    Replies: 4
    Last Post: 2006-07-26, 03:17 PM
  5. SugarCRM available on Windows XP/2000 desktop
    By kirux in forum Feature Requests
    Replies: 2
    Last Post: 2005-05-05, 04:43 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
  •