Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
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.