Skip to content

Instantly share code, notes, and snippets.

View rnique's full-sized avatar

Roman NL rnique

View GitHub Profile
@rnique
rnique / gist:d3ab65da4ad5add2ee17eb1e3af4a9e4
Last active September 20, 2016 14:29 — forked from maranemil/gist:924f4dcfb59b2ec022b9
Custom AutoIncrement Field in SugarCRM
/**
22/09/2016
1) Copy the file (only if it does not exist) from modules\Accounts\clients\base\views\record\record.php to custom\modules\Accounts\clients\base\views\record\record.php
2) Find your field in this file (for example: [industry])
3) replace
'industry',
by
array( 'name' => 'industry', 'readonly' => true, ),
*/
@rnique
rnique / SugarCRM LAMP Stack Tuning
Created May 5, 2016 22:49 — forked from chicks/SugarCRM LAMP Stack Tuning
SugarCRM Performance Tweaks
Apache:
- Activated 'KeepAlive' connections
- Lowered keep alive timeout from 15 seconds to 2 seconds
- Increased the number of minimum workers from 8 to 16
- Activated server status page (/server-status)
APC (Alternative PHP Cache):
- Set cache size to 256MB (ideal for SugarCRM workload)
Memcache:
Add a Custom Field to a SugarCRM Module and execute custom PHP code in that field on the DetailView.
Is a 2 step process.
1) Have to modify the detailviewdefs.php file and add a CustomCode to your field in this file...
/custom/modules/<MODULE-NAME_FOLDER>/metadata/detailviewdefs.php
set a variable in a customCode key/value like this...
'customCode' => '{$STATUS}',