This is an old revision of the document!


3. special Modifications

Non-English Languages and Readonly Users or Conditions in References

If you would like create Conditions with Reference Fields or have users in the vtigerCRM System, which don't have write permission for records, you have to make the following change:
Otherwise these Users won't see any colors in this read-only records.

1. OPEN /SMARTY/TEMPLATES/DETAILVIEW.TPL
{if $EDIT_PERMISSION eq 'yes' && $display_type neq '2' && $_readonly eq '0'}
  {* Performance Optimization Control *}
  {if !empty($DETAILVIEW_AJAX_EDIT) }
    {include file="DetailViewUI.tpl"}
  {else}
    {include file="DetailViewFields.tpl"}
  {/if}
  {* END *}
{else}
  {include file="DetailViewFields.tpl"}
{/if}
3. INSERT AFER THIS LINES
<td style='display:none;width:0px;' id="colorizer_{$data.fldname}" uitype='{$data.ui}' vtValue='{$keyval|@htmlentities|replace:"'":""|replace:'"':""}'></td>
4. Repeat this modification also in /Smarty/Templates/Inventory/InventoryDetailView.tpl

Setup of dynamically changed color

Show colors in ListView