u/flinxo

▲ 4 r/drupal

A template suggestion challenge

Hello fellas,

we often encounter the case of content types with fields grouped in field groups that need to be rendered in a specific fashion (e.g. table, definition list), sometimes each group with its own markup.

The motivation is accessibility.

Our goal is to have a template suggestion for fields that look like:

[entity-type]__[view-mode]__[field-name]__[field-group-name]

so that a field can be formatted differently according to its host group.

At the moment no one in the team has been able to solve the conundrum.

Any suggestion (pun intended) is highly appreciated.

reddit.com
u/flinxo — 6 days ago