- Code way:
1. Use metadata/popupdefs.php (custom folder, if there is none copy original)
2. Seek section searchdefs' => array(…)
3. Add field to searchdefs
- Studio way:
/********* MIXINS *********/ | |
.font-size(@px: 14){ | |
font-size:(@px/14*100%) ; | |
} | |
.border-radius(@params){ | |
border-radius: @params; | |
-webkit-border-radius: @params; | |
-moz-border-radius: @params; | |
-o-border-radius: @params; |
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}', |
/** | |
* | |
* @param type $data | |
* @return boolean | |
*/ | |
function send_email($data){ | |
//include files | |
include_once('email/class.phpmailer.php'); | |
$mail = new PHPMailer(); |
#!/bin/bash | |
function git_checkout_commit_files(){ | |
# ${1} is the remote branch location | |
# ${2} is the commit id | |
printf "Starting to checkout files from remote/branch: ${1} at commit: ${2}\n" | |
sleep 1 | |
printf "Fetching updates from git, please wait...\n" | |
git pull && printf "Successfully fetched update from ${1}\n Checking-out the files now, please wait..." && sleep 1 && git diff-tree --no-commit-id --name-only -r ${2} | xargs git checkout ${1} | |
} |