Problem statement
I tried to show a block (Group operations) which would help me assign a newly created node to a group - using the regular drupal functionality.
But:
As an Admin or person who is assigned to multiple groups it is "work" to create a group node:
You have to open the groups list, click through the groups list, select the appropriate group. Go to group content, select to add group content, select which group content, ... to just add a node.
Desired functionality:
I would like to add content the normal drupal way: menu/add content.
Once on the node edit page of the new node (under node/add/*) I would expect a block that shows me the groups I am allowed to add content to. I simply select the group and I would be done!
I tried to place a block (Group operations), but it is not displayed on the form edit page.
Proposed resolution
Use the Entity Group Field contrib module.
See also #2772975-22: Adding node to Group from regular node creation form (/node/add/article, for instance) and #2813405: Add a field to view and edit content's groups.
Comments
Comment #2
maxilein CreditAttribution: maxilein commentedComment #3
maxilein CreditAttribution: maxilein commentedI would like to add another question which seems to go "hand in hand":
how do I create a group node using Restful Services JSON?
Comment #4
maxilein CreditAttribution: maxilein commentedComment #5
oriol_e9gYes, when I go to node/add/* or node/*/edit I expect a field_group with a group list selector.
Comment #6
oriol_e9gThis is a work for group node.
Comment #7
oriol_e9gComment #8
oriol_e9gComment #9
jpoesen CreditAttribution: jpoesen at Code Enigma commentedDuplicate of #2772975: Adding node to Group from regular node creation form (/node/add/article, for instance) where the reason for not adding this feature is explained.
Comment #10
jwilson3For anyone coming here from Google/search:
Comment #22 on related issue #2813405 points to another contrib module called Entity Group Field for the solution architecture.
Studying the Entity Group Field module’s summary page, it appears that the module may be the working, but unofficial, fix in contrib for this issue.
As a side note, this feature was implemented in Entity Group Field via the following issue
#2813405: Add a field to view and edit content's groups.