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

Add css ID wrapper to profiles for profile-specific styling

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Currently there's no way to have fine-grained profile-specific css styling. For example, perhaps I want a specific font used on the detail view for profile #3, but want the default font used for all other profiles.

      To accomplish this, add a div inside the main crm-container div:
      <div id="profilewrap{$groupId}">

      In some cases, the gid is not passed to the template, such as CRM/Profile/Page/View.php
      Add: $this->assign( 'groupId', $this->_gid );
      Around line 74

        Attachments

          Activity

            People

            • Assignee:
              amit Amiteshwar Prasad
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 15 minutes
                15m
                Remaining:
                Remaining Estimate - 15 minutes
                15m
                Logged:
                Time Spent - Not Specified
                Not Specified