Score:0

How to create a common template suggestion for all fields contained in a field group?

ro flag
MXT

Using field_group module, I grouped some fields in a field group (e.g. group_side_box as field group machine name)

How can I get a field template suggestion common to all fields belonging to that group?

So in addition to usual field template suggestions:

* field--node--field-article-language--article.html.twig
* field--node--field-article-language.html.twig
* field--node--article.html.twig
* field--field-article-language.html.twig
* field--entity-reference.html.twig
x field.html.twig

Add something similar to:

* field--group-side-box.html.twig
* field--group-side-box--node--article.html.twig
* (or) field--node--article--group_side_box.html.twig

So in a way that I can create a unique field template for all fields belonging to that group.

Thank you very much for any help.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.