Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 
                    en:extensions:colorizer:documentation:listview [2013/12/18 12:04] swarnat created  | 
                
                    en:extensions:colorizer:documentation:listview [2014/12/17 11:16] (current) swarnat  | 
            ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== 4. ListView ====== | + | ====== 4. add to ListView ====== | 
| + | <WRAP center round important 60%> | ||
| + | This only needs to be done in VtigerCRM 5.40! | ||
| + | It works out of the box in 6.x. | ||
| + | </WRAP> | ||
| + | You could show your color settings inside ListView with some limitations. | ||
| + | You have to insert a snippet into one vTigerCRM core sourcefile, because with basic functions, the extension couldn’t interact with the ListView. | ||
| + | |||
| + | <fc red>If you don't use vtigerCRM in english, you have to check [[en:extensions:colorizer:documentation:listview##changes_for_vtigercrm_systems_not_using_english|the last part]].</fc> | ||
| + | |||
| + | ==== vtigerCRM < 5.4 ==== | ||
| + | |||
| + | == 1. open /Smarty/templates/ListViewEntries.tpl == | ||
| + | == 2. go to end of File == | ||
| + | == 3. insert before == | ||
| + | <code> | ||
| + | {include_php file='./modules/Colorizer/ListViewGenerator.php'} | ||
| + | </code> | ||
| + | |||
| + | == 4. Probably you have to clear the directory Smarty/templates_c/ == | ||
| + | \\ | ||
| + | |||
| + | ==== vtigerCRM 5.40 ==== | ||
| + | == 1. open /modules/Vtiger/ListView.php == | ||
| + | == 2. search (End of File) == | ||
| + | ?> | ||
| + | == 3. insert before == | ||
| + | |||
| + | <code php> | ||
| + | // Changed Stefan Warnat COLORIZER START | ||
| + | require_once("modules/Colorizer/ListViewGenerator.php"); | ||
| + | // Changed Stefan Warnat COLORIZER ENDE | ||
| + | </code> | ||
| + | \\ | ||
| + | |||
| + | |||
| + | ==== Changes for vtigerCRM systems not using english ==== | ||
| + | == 1. open /include/utils/ListViewUtils.php == | ||
| + | == 2. search == | ||
| + | vtmodule='$module' | ||
| + | == 3. insert after == | ||
| + | vtvalue='".strip_tags(str_replace("'", "\\'", $value))."' | ||
| + | == 4. Open /include/ListView/ListViewController.php == | ||
| + | == 5. search: == | ||
| + | vtmodule='$module' | ||
| + | == 6. insert after == | ||
| + | vtvalue='".str_replace("'", "\\'", $rawValue)."' | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | Now the format settings are shown in ListView | ||
| + | |||
| + | **Limitations** | ||
| + | * The Actions don’t work, because there are no blocks to collapse/hide. | ||
| + | * If you have define complex conditions, the color only will applied, if all columns used in conditions are shown in filter | ||