Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I think there may be a misleading comment on the OG Context settings page where it says:
Select groups if they were passed in the node create URL (e.g. node/add/post?field_group_ref=4,5,6). Note: Depends on Entity reference prepopulate module, and enabling "Prepopulate" in the field settings.
To get this to work with entity reference prepopulate I needed to use the field name 'og_group_ref=1,2,3' instead of 'field_group_ref' as indicated in the comment.
Comment | File | Size | Author |
---|---|---|---|
#2 | prepopulate-field-name-1645316.patch | 1.01 KB | joel_osc |
Comments
Comment #1
amitaibuCare to roll a patch and get a credit for this? :)
Comment #2
joel_osc CreditAttribution: joel_osc commentedHere is a patch...fairly new to creating git patches, so please let me know if it needs any work. Cheers.
Comment #3
joel_osc CreditAttribution: joel_osc commentedOops, forgot to set status to needs review.
Comment #4
amitaibuCommitted, thanks.