If you want to Include some texts or some marquees inside the edit view, detail view or list view in SugarCRM Views, Ever confused how to do it?
1) For Editing Detail View Header & footer..
Navigate to CRM/include/DetailView\ Folder.. Inside that You can see header.tpl & footer.tpl Files..
2) For Editing Edit View Header & Footer
Navigate to CRM/include/EditView\ Folder.. Inside that You can see header.tpl & footer.tpl files..
3) For Editing List View Header/Footer
Navigate to CRM/include/ListView\ Folder.. Inside that You can see header.tpl & footer.tpl files..
For Eg:
1)You want to show some particular texts inside detail view of some specific module only.. Then
Open DetailView header.tpl file
Include this in the file where the script starts like this:-
{{if $module==Accounts}}
<center><label style="font:'Arial Black', Gadget, sans-serif; font-size:30px; font-weight:bold;">Clients </label></center>
{{/if}}
Now do a quick repair & rebuild, the change you can see the accounts module detail view..
2) If you want to show particular Record Title in the heading of detail View...
Open DetailView header.tpl file, edit and Include this:-
{{if $module==Accounts}}
<center>
<label style="font:'Arial', Gadget, sans-serif; color:red; font-size:20px; font-weight:bold;"> {$fields.name.options[$fields.name.value]}</label>
</center>
{{/if}}
where " name " is the field value u want to show..
Suppose you want to show Client Indusry which is in DB has field name client_industry_c then, the code will be like:-
{{if $module==Accounts}}
<center>
<label style="font:'Arial', Gadget, sans-serif; color:red; font-size:20px; font-weight:bold;"> {$fields.client_industry_c.options[$fields.client_industry_c.value]}</label>
</center>
{{/if}}
After doing this, perform a quick Repair & rebuild, the changes you can view..
1) For Editing Detail View Header & footer..
Navigate to CRM/include/DetailView\ Folder.. Inside that You can see header.tpl & footer.tpl Files..
2) For Editing Edit View Header & Footer
Navigate to CRM/include/EditView\ Folder.. Inside that You can see header.tpl & footer.tpl files..
3) For Editing List View Header/Footer
Navigate to CRM/include/ListView\ Folder.. Inside that You can see header.tpl & footer.tpl files..
For Eg:
1)You want to show some particular texts inside detail view of some specific module only.. Then
Open DetailView header.tpl file
Include this in the file where the script starts like this:-
{{if $module==Accounts}}
<center><label style="font:'Arial Black', Gadget, sans-serif; font-size:30px; font-weight:bold;">Clients </label></center>
{{/if}}
Now do a quick repair & rebuild, the change you can see the accounts module detail view..
2) If you want to show particular Record Title in the heading of detail View...
Open DetailView header.tpl file, edit and Include this:-
{{if $module==Accounts}}
<center>
<label style="font:'Arial', Gadget, sans-serif; color:red; font-size:20px; font-weight:bold;"> {$fields.name.options[$fields.name.value]}</label>
</center>
{{/if}}
where " name " is the field value u want to show..
Suppose you want to show Client Indusry which is in DB has field name client_industry_c then, the code will be like:-
{{if $module==Accounts}}
<center>
<label style="font:'Arial', Gadget, sans-serif; color:red; font-size:20px; font-weight:bold;"> {$fields.client_industry_c.options[$fields.client_industry_c.value]}</label>
</center>
{{/if}}
After doing this, perform a quick Repair & rebuild, the changes you can view..
No comments:
Post a Comment