Details
-
Type:
Improvement
-
Status: Done/Fixed
-
Priority:
Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.2.7
-
Fix Version/s: 3.0
-
Component/s: CiviCRM Profile
-
Labels:None
Description
It can be quite useful to create a completely customized Profile VIEW template. In order to make it easy to reference each field (label and value) in a Profile template - assign a new array to View.tpl containing an array of fields with their labels and values.
If you want a custom profile view, you can access field labels and values in $profileFields_N array - where N is profile ID.
EXAMPLE - to access last_name field for profile 1:
{$profileFields_1.last_name.label}
{$profileFields_1.last_name.value}