Details
-
Type: New Feature
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.5.2
-
Fix Version/s: 4.6
-
Component/s: Drupal Integration Modules
-
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.