I was initially confused that newly created nodes within a Group were rendering, basically, blank.

The answer is that group node content must be configured to show the "Content" field as a rendered entity. Since we can field this relationship between a Group and a Node, we must also handle the display mode of this relationship.

Step 1

Ensure you've enabled node types that can be created within a group by navigating to /admin/group/types, clicking the Operations dropdown for a Group type and selecting "Set available content":

Set available content

Step 2

You'll be sent to /admin/group/types/manage/{{group_type}}/content. Ensure a Group Node for a content type is installed. I've installed Article for my Group type. Click the Operations dropdown for your content type (Article) and select "Manage Display":

Set available content

Step 3

You'll be sent to/admin/group/content/manage/{{group_type}}-group_node-article/display. Now simply ensure you've dragged the Content field up out of the "Disabled" section, set it's format to "Rendered entity" and it's view mode to "Default" (or whatever other view mode you prefer for your Content Type). You'll also have the chance to adjust any other fields you've added to this Group Node relationship.

Set available content

I hope this helps others who are getting their heads around the fieldable Group relationship entity (which is awesomely powerful!) Please let me know if I should adjust any terminology here or make any edits. Also let me know if this is the appropriate place for something like this.

CommentFileSizeAuthor
#2 group_3.png38.11 KBillepic
group_3.png38 KBillepic
group_2.png62.79 KBillepic
group_1.png37.97 KBillepic
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

illepic created an issue. See original summary.

illepic’s picture

Issue summary: View changes
FileSize
38.11 KB
kristiaanvandeneynde’s picture

While this solution does work, the underlying interpretation is wrong. The display you are configuring in your screenshots is that of the relationship entity between the node and the group.

So while it's perfectly possible to simply show the node there as well (as you've demonstrated), the idea behind the fieldable relationship is that you also have a page to view that metadata if you wanted to.

This is probably the most confusing feature that was newly introduced in the D8 branch and will be made much more clear in the future. Otherwise great guide, by the way!

kristiaanvandeneynde’s picture

Component: Group Node (gnode) » Documentation
Category: Task » Support request
Status: Active » Fixed
illepic’s picture

Cheers! Makes sense since the relationship is fieldable and we can see it here. Is there a simple solution for redirecting to the created node if it was added via the "Group operations -> Create {node type}" dropdown button? It currently ends on the fieldable relationship.

kristiaanvandeneynde’s picture

We should probably look into adding that.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.