require_once 'vtlib/Vtiger/Module.php';
$module = Vtiger_Module::getInstance('MODULENAME');
$block = Vtiger_Block::getInstance('BLOCKLABEL', $module);
$field = new Vtiger_Field();
$field->name = 'FIELDNAME';
$field->table = 'TABLENAME';
$field->column = 'COLUMNNAME';
View create_theme_block.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Setting up the arguments variables, so we can error on empty ones later | |
AUTHOR= | |
TITLE= | |
NAMESPACE= | |
GREEN="\033[0;32m" | |
NOCOLOR="\033[0m" | |
# Getting the passed arguments |
View Tar corebos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar --exclude="./backup" --exclude="./config.inc.php" --exclude="./.git" --exclude="./.gitignore" --exclude="./install" --exclude="./install.php" -cvzf corebos.tar.gz . > /dev/null & |
View gist:54d08807ace2bd1931a2f537ff03109f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Search for | |
include_once\(([\'a-z/\.]*)\) | |
### Replace with | |
include_once $1 |
View create-ui10-vtlib.md
View finetuning-product-service-autocomplete-corebos.md
Fine-tuning the Products/Services autocomplete
There has been an update that will allow you to fine-tune the autocomplete for products and services. Let's dive in and explain how you can set the options:
First off: selecting the fields the autocomplete searches in
By default, typing something in the product lines will fire a search in the following fields by default:
Products
- productname
- manufacturer part no
- vendor part no