- First commit to issue fork.
- Status changed to Needs review
5 months ago 5:23am 20 June 2024
Currently, the module provides a Twig template that can be overridden by modules and themes. However, they can only do so if they keep the exact same filename as the one used by the module. This makes it complicated to provide different templates for different instances of the field.
Provide multiple theme hook suggestions that will allow the field template to be overridden. The used suggestions could be similar to the ones provided by the Drupal core fields:
FILE NAME SUGGESTIONS:
* field--node--[field-name]--[node-type].html.twig
* field--node--[field-name].html.twig
* field--node--[node-type].html.twig
* field--[field-name].html.twig
* field--[field-type].html.twig
Create a patch that implements hook_theme_suggestions_HOOK() and adds multiple file name suggestions.
None.
None for existing installations. When the proposed solution is applied, developers will have the ability to make template overrides more specific.
None.
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.