Results 1 to 5 of 5

Thread: Modify module variables

  1. #1
    oskarsson is offline Member
    Join Date
    Aug 2011
    Posts
    6

    Default Modify module variables

    Hi all,

    I'm completely new to SugarCRM, but so far I like it very much! I've adapted the modules and tabs as per my requirements and now I'm stuck at the second step. I would like to be able to add/remove variables from the Module that I don't need and just consider clutter (Eg. in the Action "Create Opportunity" I just need several variables, and not all that are mentioned).

    Could anyone inform me on how I can edit these existing modules, removing any unwanted variables?

    Thanks in advance!

  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: Modify module variables

    welcome to SugarCRM Universe.

    You need to create an extended menu for Opportunities in order to drop such menu item.

    custom/Extension/modules/Opportunities/Ext/Menus/somescript.php

    Inside this script you need to unset from $module_menu the options you want to drop out.

    Regards
    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
    oskarsson is offline Member
    Join Date
    Aug 2011
    Posts
    6

    Default Re: Modify module variables

    Thanks for the quick reply!

    Before starting to configure scripts, I was just looking around and found that inside the Admin/Studio part I can make some adjustments to the modules, such as changing labels/fields. However, I have not found how I can delete fields. As I assume this is not possible from the admin/studio, where would I be able to find the actual (.php) files that contain the information of the module and its fields?

    Best regards.

  4. #4
    oskarsson is offline Member
    Join Date
    Aug 2011
    Posts
    6

    Default Re: Modify module variables

    Found them (Eg. /sugarcrm/modules/Opportunities/Opportunity.php)

    I understand I should be careful as some relationships with other files might be lost, but couldn't I just remove any unwanted variables from this file? if not, what would be the reasons not to? (stability?)

    Best regards.

  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: Modify module variables

    You can not delete built in fields or relationships, you just remove them from layout.

    Regards
    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. Replies: 2
    Last Post: 2011-03-02, 10:14 AM
  2. Modify the date variables to add in workdays?
    By jrp918 in forum Developer Help
    Replies: 11
    Last Post: 2010-12-10, 05:38 PM
  3. example module with custom configuration variables
    By narayanis in forum Developer Help
    Replies: 0
    Last Post: 2010-06-27, 01:44 PM
  4. Access the variables of a module Case in a logick hook
    By aboboreira in forum Developer Help
    Replies: 2
    Last Post: 2009-10-29, 03:42 PM
  5. Replies: 0
    Last Post: 2009-01-12, 02:02 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
  •