1

I have this requirement, where a Node needs to reference instances of three different types of entities (a Node, a custom entity, and a webform). These three entities will then be rendered as one list of "related content".

Currently, I have them as three separate entity reference fields. But I could not figure out how to render them as a single list (it ends up being three lists of entities). Also tried the Dynamic Entity Reference module, but that one doesn't reference Config Entities (webform).

Am I missing an obvious way to achieve this?

1 Answer 1

2

If I understand your question correctly, you currently have three different reference fields (one for each entity type to reference to) that each can have multiple values. And you want to combine the value of these three fields in groups, so the first values are displayed as a set, the second values are displayed as a set, etc.

I think the Paragraphs module is what you are looking for. You can create a paragraph that contains the three reference fields, in your case allowing only one value per field. And on your node (type) you add a multi-value paragraphs field, allowing your editor to provide groups of references which are rendered together.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.