Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4805

Provide access to array of field labels and values for customizing Profile View

    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}

        Attachments

          Activity

            People

            • Assignee:
              rajan Rajan P Mayekar
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: