SugarCRM read only field in edit view

How do I make a field in SugarCRM edit view read only? SugarCRM version >= 6.5 Add below configuration lines to  <sugarcrm root>/custom/Extension/modules/<your module name>/metadata/editviewdefs.php: 'displayParams' => array ( 'field' => array ( 'disabled' => 'disabled', ), ),...

Redirect www to non-www nginx configuration

Redirect single domain with www to non-www. For example, redirecting of http://www.dennylabs.com to http://dennylabs.com. Why do we need to redirect www to non-www or vice versa? It all because of SEO purposes. Google treats your content as duplicate when they are crawl-able from both www and non-www. Nginx configuration for single domain redirection of www to non-www . server { server_name www.dennylabs.com; return 301 $scheme://dennylabs.com$request_uri; } Nginx configuration for multiple domains redirection of www to non-www. server { server_name "~^www\.(.*)$" ; return 301 $scheme://$1$request_uri;...

SugarCRM compulsory/ mandatory relationship

How to configure relationship between 2 modules mandatory/ compulsory? Real life example, we have 2 custom module “Store” and “Machine Acquisition”. On new “Machine Acquisition” record creation, we need to ensure user select which “Store” the “Machine Acquisition” record belongs to. Solution: Add displayParams to the <sugar root>/custom/modules/<ModuleName>/metadata/editviewdef.php 'displayParams' => array( 'required' => true, ), Reference: SugarCRM...