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

Add a views argument default to pull CiviCRM Contact ID from the URL

    Details

    • Type: New Feature
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.2
    • Fix Version/s: 4.6
    • Labels:
    • Documentation Required?:
      None

      Description

      Requirement

      We have started building Views that require the contact ID from the URL to be passed to the View as an argument. This is used to display information contextually on a contact page - for example, displaying Drupal nodes that reference the Contact that is currently being viewed.

      Solution

      We have created a plugin to achieve this, and thought it would be useful if shared the community. PR will be linked below.

      Future development

      This default argument plugin has been built with future development in mind. The options form could include other ID types to extract from the URL (event ID, contribution page ID, etc) with the correct validation.

        Attachments

          Activity

            People

            • Assignee:
              chrischinchilla Chris Chinchilla
              Reporter:
              john John K.
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: