Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294758

Template theme hook suggestions for Fields do not include ViewModes

$
0
0

Problem/Motivation

As we added ViewMode template suggestions for Nodes here #1503464: Automatically add theme hook suggestion for node view mode and most probably for all entities: #2270883: Automatically add theme hook suggestions for all entity types.
We should also have suggestions for Fields.
Also because you can configure your Field Formatter per Viewmode, I think this is necessary.

Steps to reproduce

Add Theme Hook Suggestions for Fields with View Modes

Proposed resolution

We could add these suggestions:

  • field__[view_mode]
  • field__[view_mode]__[bundle]
  • field__[view_mode]__[field_name]
  • field__[entity_type]__[view_mode]
  • field__[entity_type]__[view_mode]__[bundle]
  • field__[entity_type]__[view_mode]__[field_name]
  • field__[entity_type]__[view_mode]__[field_name]__[bundle]

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 294758

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>