Results 1 to 6 of 6

Thread: How to get web links in Account to open in new browser page

  1. #1
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default How to get web links in Account to open in new browser page

    I know we need to add an target="_blank" to the href statement. But where would I put this edit?

    For example, we are using the website standard field in Account to link to a clients website. Entry of the link is fine. On the detailview it shows as a hyperlink. but when we click ont he link it opens and over wriotes the Sugar page. We need this to open in a new browse page.

    Where could I make this edit in Sugar, or is this a firefox tweak?

    Thanks for suggestions,
    Paris

    CentOS 5 (redhat 5)
    Apache 2.2x
    Php 5.2
    Sugar 5.0d
    Last edited by ptemplin7; 2008-05-04 at 08:11 PM. Reason: add notification.

  2. #2
    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: How to get web links in Account to open in new browser page

    Hi, Paris.

    You have to use a customCode.
    There are threads explaining how to use it.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: How to get web links in Account to open in new browser page

    Thanks,

    I had too search for a while to find something relevant to 5.0 instead of 3.5!

    Anyway for everyone else, check this forum post:
    http://www.sugarcrm.com/forums/showt...d=1#post111362

    I will be testing my customcode!

    Paris

  4. #4
    madmat is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    164

    Default Re: How to get web links in Account to open in new browser page

    In:

    sugar/custom/modules/accounts/detailviewdefs.php
    Add:
    PHP Code:
    'customCode' => '<a href="http://{$fields.website.value}" target="_blank" >{$fields.website.value}</a>'
    to "website".

    Admin-Repair-Done.

  5. #5
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: How to get web links in Account to open in new browser page

    Finally got it to work.

    Note to get it to really work I had to add
    'type' => 'link',
    as well.

    Remember that if you use studio to edit your layouts these edits are wiped out! so make sure to make a copy and do a doc merge if you need to make edits via studio.

    Also make sure that there is a http:// by default in the field otherwise the link will open as a directory of your website not the website.

    Hope everyone can get this to work!

    thanks Paris

  6. #6
    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: How to get web links in Account to open in new browser page

    Quote Originally Posted by ptemplin7
    Remember that if you use studio to edit your layouts these edits are wiped out! so make sure to make a copy and do a doc merge if you need to make edits via studio.
    Hi, Paris.

    This issue you just reported will be fixed in the next versions.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sugarcrm not listening on Port 80
    By mtangella in forum Help
    Replies: 7
    Last Post: 2011-02-02, 02:35 PM
  2. Replies: 5
    Last Post: 2006-11-18, 09:51 PM
  3. Replies: 0
    Last Post: 2005-09-15, 09:23 PM
  4. My Account in home page ?
    By fabpenso in forum General Discussion
    Replies: 0
    Last Post: 2005-06-10, 01:22 PM
  5. Replies: 0
    Last Post: 2005-01-21, 12:25 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
  •