Results 1 to 3 of 3

Thread: How to change button name ?

  1. #1
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default How to change button name ?

    Hi,

    In DetailView of Project Module I want to change the button name of "Duplicate".
    I want this modification to have only effect the DetailView"Project" Module, so all other Modules will stay the same. How to do this?

    Great thanksss
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  2. #2
    eescribano's Avatar
    eescribano is offline Senior Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Posts
    85

    Default Re: How to change button name ?

    You have to edit the file custom/modules/Project/metadata/detailviewdefs.php, you will have to create it, copy the file from modules/Project/metadata/detailviewdefs.php and change the code for the duplicate button.
    The code I find in my instance is this:
    PHP Code:
    array( 'customCode' =>'<input title="{$APP.LBL_DUPLICATE_BUTTON_TITLE}" ' .
                                                            
    'accessKey="{$APP.LBL_DUPLICATE_BUTTON_KEY}" class="button" type="submit" ' .
                                                            
    'name="Duplicate" id="duplicate_button" value="{$APP.LBL_DUPLICATE_BUTTON_LABEL}"'.
                                                            
    '{if $IS_TEMPLATE}'.
                                                                
    'onclick="this.form.return_module.value=\'Project\'; this.form.return_action.value=\'ProjectTemplatesDetailView\'; this.form.isDuplicate.value=true; this.form.action.value=\'projecttemplateseditview\'; this.form.return_id.value=\'{$id}\';"'.
                                                            
    '{else}'.
                                                                
    'onclick="this.form.return_module.value=\'Project\'; this.form.return_action.value=\'DetailView\'; this.form.isDuplicate.value=true; this.form.action.value=\'EditView\'; this.form.return_id.value=\'{$id}\';" {/if}'.
                                                            
    '"/>'
                                                        ), 
    Here you can change what you need
    PHP Code:
     name="Duplicate" 
    Elisabeth Escribano
    Webdeveloper

    MADCAP verademing in ict

    e.escribano@madcap.nl

    Schapedrift 89
    3371 JJ Hardinxveld-Giessendam
    Netherlands
    Tel 088 99 088 99
    Fax 088 99 088 98

    www.madcap.nl

  3. #3
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: How to change button name ?

    Thanks a lot!
    Change 'name' didn't worked for me.
    But when you want to change the name you have to modify these lines;

    title="Name whatever you want"
    value="Name whatever you want"
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to change default button labels?
    By geziefer in forum Developer Help
    Replies: 2
    Last Post: 2009-06-24, 04:22 PM
  2. Replies: 3
    Last Post: 2009-04-30, 12:53 PM
  3. How to change subpanel create button
    By piccirm in forum Developer Help
    Replies: 2
    Last Post: 2009-01-28, 01:38 PM
  4. Can't find 'View Change Log' button
    By leigh in forum Help
    Replies: 6
    Last Post: 2006-05-30, 02:53 PM
  5. change button
    By rohandey in forum Developer Help
    Replies: 2
    Last Post: 2006-03-16, 09:56 AM

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
  •