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

Add CrmRegion Tag to Contact Actions menu template

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.0
    • Fix Version/s: 4.7.30
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      We are working on a project that needs the Contact actions menu of the contact summary page to be modified. The template for the menu is here https://github.com/civicrm/civicrm-core/blob/master/templates/CRM/Contact/Page/Inline/Actions.tpl

      Rather than override the core template,  The proposed solution is to add a  CrmRegion tag around the crm-contact-actions-list div tag so that custom content and markup can be injected.

      Something like this: 

       

      {crmRegion name="contact-page-inline-actions"}

        <div class="ac_results" id="crm-contact-actions-list">

        < existing html >

        </div>

      {/crmRegion}

       

      This proposed change will be useful incase anyone needs to add custom markup to this template too.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tunbola@compucorp.co.uk Tunbola Ogunwande
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified