Results 1 to 6 of 6

Thread: Text formatting

  1. #1
    Artisan is offline Junior Member
    Join Date
    Jul 2008
    Posts
    2

    Default Text formatting

    I want to make some changes to the way some of the text appears in Accounts Detail View as follows:

    The account name - make bold
    Email address - remove bold

    I also want to make any website links open in a new window by adding target="_blank".

    I'm using SugarCRM 5.0.0f, the default Sugar theme, and have colour set to Grey. Can anyone tell me where the relevant settings are located?

    In case any of that isn't clear I've attached an image showing what I want to do.

    Malcolm
    Attached Images Attached Images  

  2. #2
    petterford is offline Junior Member
    Join Date
    Jul 2008
    Posts
    3

    Default Re: Text formatting

    why not you try, html codes.. its will help u a lot..

    --------------
    Background Check Report | Free Background Checks | Sex Offenders

  3. #3
    Artisan is offline Junior Member
    Join Date
    Jul 2008
    Posts
    2

    Default Re: Text formatting

    Yes, I was going to use HTML, but what I need to know is which files to make the changes to, and where they are located.

    Malcolm

  4. #4
    malcolmh's Avatar
    malcolmh is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Aug 2004
    Posts
    1,712

    Default Re: Text formatting

    Hi,

    try looking at the fiels in the themes directoy
    Cheers Malcolm

    Genius4U Limited - Ingenious simple IT solutions for you / Genial einfache IT Lösungen für Sie
    http://www.genius4u.com or http://www.genius4u.de

  5. #5
    jsagar's Avatar
    jsagar is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Ahmedabad,India
    Posts
    242

    Default Re: Text formatting

    hi,
    you can bold the Account nameor full name of the contacts...
    using the Custom code
    here is the Contact name Bold. you can check accordingly...
    modules/Contacts/metadata/detailviewdefs.php

    'name' => 'full_name',
    'customCode' => '<b>{$fields.full_name.value}</b>

    It will help you ...

    Thanks & Regards
    Best Regards
    ---------------------------------------
    Jaydeepsinh Sagar

  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: Text formatting

    Hi, Artisan.

    You can extend the Templated Fields located on include/SugarFields/Fields.
    You can modify the extended template file to assign a new layout according to your needs.
    For the Email Field it is more complicated, because that field is defined into Person template module and its implementations is inside include/SugarEmailAddress.
    So you should extend the vardefs of the module you want to modify the fields and change the function attribute:

    PHP Code:
        'email1' => 
            array(
                
    'name'        => 'email1',
                
    'vname'        => 'LBL_EMAIL_ADDRESS',
                
    'type'        => 'varchar',
                
    'function'    => array(
                    
    'name'        => 'getEmailAddressWidget',
                    
    'returns'    => 'html'),
                
    'source'    => 'non-db',
                
    'group'=>'email1',
                
    'merge_filter' => 'enabled',
            ), 
    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. Formatting Text in SubPanel
    By julian.davis in forum Developer Help
    Replies: 2
    Last Post: 2008-05-15, 02:39 AM
  2. Email module - no HTML text area for email body
    By marcuscherry in forum Help
    Replies: 1
    Last Post: 2007-08-17, 01:36 PM
  3. Replies: 1
    Last Post: 2007-03-20, 01:28 PM
  4. Replies: 1
    Last Post: 2006-04-10, 09:12 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
  •