Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.1
-
Fix Version/s: 3.2
-
Component/s: Core CiviCRM
-
Labels:None
Description
As we allow to override contact edit / view screens by contact subtype,
( http://issues.civicrm.org/jira/browse/CRM-5128 )
here these templates are getting collides w/ core functionality related templates.
Work around would be, lets have own template directory for contact subtype.
so user effectively put the appropriate template in those directories.
To override edit screen : put $subTypeName.tpl file in 'templates/CRM/Contact/Form/Edit/SubType' directory.
EXAMPLE: To create a custom edit screen for 'Student' subtype, copy templates/CRM/Contact/Form/Contact.tpl as
templates/CRM/Contact/Form/Edit/SubType/Student.tpl and make modifications as required.
To override view screen (contact summary) : put $subTypeName.tpl file in 'template/CRM/Contact/Page/View/SubType' directory.
EXAMPLE: To create a custom summary view screen for 'Student' subtype, copy templates/CRM/Contact/Page/View/Summary.tpl as templates/CRM/Contact/Page/View/SubType/Student.tpl and make modifications as required.