Results 1 to 6 of 6

Thread: URL Link Text

  1. #1
    Linnane is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    64

    Default URL Link Text

    Hi,

    Using - Version 6.2.1 (Build 6405),
    Is there a way to display a peice of text (dynamic or static) as the link text for URL ... All I can get is the URL displayed itself ... looks very untidy and unprofessional (esp with long URLs)

    Regards
    Linnane.

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

    Default Re: URL Link Text

    At which place do you have that link? Screenshot?
    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
    Linnane is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    64

    Default Re: URL Link Text

    Hi,

    Its just on the Account overview (see the attached), I'd also have some on the Opportunities. I just used the admin Studio to create the field.

    Thanks for getting back to me


    Regards
    Linnane.
    Attached Images Attached Images   

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

    Default Re: URL Link Text

    You could add 'customCode' definition in custom/modules/<modulename>/metadata/detailviewdefs.php like this:
    PHP Code:
              array (
                
    'name' => 'bingmap_c',
                
    'customCode' => '<a href="{$fields.bingmap_c.value}">The label I want to see</a>',
                
    'label' => 'LBL_BINGMAP',
    ...
              ), 
    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

  5. #5
    Linnane is offline Sugar Community Member
    Join Date
    Jun 2009
    Posts
    64

    Default Re: URL Link Text

    Hi,

    Thanks again for your reply ...
    Its a solution and I'll use it if I can't find anything more generic for all URL's.


    Is there anything more generic that I could use ... maybe to use the
    Help txt or the Comment txt for all URL's ?

    I presume you don't know of any module/plugin that adds something to the studio that I could use?

    Regards
    Linnane

  6. #6
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: URL Link Text

    I think it is the simpliest way to do it.
    but you also could try to customize the url field type under directory: includes/SugarFields/Fields/Links/
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Create an anchor link with text rather than a url
    By jkumar in forum Developer Help
    Replies: 0
    Last Post: 2011-06-15, 01:52 AM
  2. Replies: 0
    Last Post: 2011-04-11, 08:23 PM
  3. Link text for relationship
    By fattmox in forum Developer Help
    Replies: 0
    Last Post: 2010-01-28, 07:10 PM
  4. Replies: 0
    Last Post: 2008-07-11, 06:06 AM

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
  •