Results 1 to 8 of 8

Thread: changing name of custom module?

  1. #1
    kazuoF is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    79

    Question changing name of custom module?

    We use version 5.5.4.

    How can I change the name of a custom module?
    I mean not only the tab name (which can be changend under Admin -> Rename Tabs) but also the name as it appears in the list of modules?

    I changed all Strings in /modules/<MODULE NAME>/language/ as suggested in http://apps.sugarcrm.com/forums/showthread.php?t=63171 but afterwards the old name was still displayed and not the new one. Afterwards, I tried Admin -> Repair -> Quick Repair and Rebuild, but also to no avail.

  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: changing name of custom module?

    Your sugar is installed on Windows or Linux?

    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
    kazuoF is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    79

    Default Re: changing name of custom module?

    It is installed on Linux.

  4. #4
    kazuoF is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    79

    Question Re: changing name of custom module?

    Can anyone help?

  5. #5
    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: changing name of custom module?

    You can mass rename your module this way:

    Go to root of your sugar instance and run the following commands on shell:
    find ./ -name '*.php' | xargs perl -i.bkp -p -e 's/Old/New/g;'
    find ./ -name '*.php' | xargs perl -i.bkp -p -e 's/old/new/g;'
    find ./ -name '*.php' | xargs perl -i.bkp -p -e 's/OLD/NEW/g;'
    find ./ -name "*.bkp" | xargs -i{} rm -f {}

    These commands will replace the content of each file which matches the old module

    Then you then can rename the files and module folder.

    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.

  6. #6
    kazuoF is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    79

    Default Re: changing name of custom module?

    Thank you andopes!

    Can I also use this method for changing
    a) dropdown names
    b) field names

    or does that require a different approach?

  7. #7
    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: changing name of custom module?

    There is no big deal doing that, you just need to:

    find modules/<ModuleName>/

    In order to restrict the search only to module where the field is located.

    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.

  8. #8
    Cypriot is offline Member
    Join Date
    Mar 2010
    Posts
    29

    Default Re: changing name of custom module?

    Hi Andopes,

    i have create a custom module called moduleA but after creating all the fields etc now i had to change the moduleA to ModuleB i cant see how to change in the Codes as i want it to change in the hard code as well ... is there easy way of doing this or do i have to create the module from 0 ! ?

    Thank you so much

    system :
    sugarcrm CE 6.4
    Linux hosting
    Last edited by Cypriot; 2011-12-25 at 10:23 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Changing home page to custom module
    By rob78 in forum Developer Help
    Replies: 7
    Last Post: 2011-10-11, 05:10 PM
  2. Replies: 4
    Last Post: 2010-03-16, 12:46 PM
  3. Need help changing custom module drop-down list
    By srd27 in forum General Discussion
    Replies: 2
    Last Post: 2009-10-29, 07:55 PM
  4. Replies: 3
    Last Post: 2008-04-09, 01:48 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
  •