- Issue created by @philip_stier
- Issue was unassigned.
- 🇩🇪Germany D34dMan Hamburg
I tried this and found that, even tough we are able to add a paragraph via "ME template", it is not possible to save the node as the validation kicks in.
I can think of multiple ways to approach this problem (for brainstorming)...
Solution A
1. Maybe there could be a field in "me_template" entity that captures the information about on which entity and field the template is made available for.
2. Then when showing list of available templates, we can filter it based on entity type, bundle and field context.Solution B
1. Automatically detect the paragraph type which are allowed for a given field and remove any "templates" from suggested template
Solution C
1. Automatically detect the paragraph type which are allowed for a given field and remove any paragraphs, which are not allowed for a given field, when "applying" the template.
Solution D
1. Indicate "paragraphs" which are invalid to the user as "error" so that they can "remove" it themselves.