Problem:
ds_theme_suggestions_field_alter doesn't apply the right ds field template function, it only works with the default settings.
How to test:
- Create a node type, news, add a layout and display the post date
- Set the default ds field template to reset
- Set the post date ds field template to expert
The settings are saved, but it goes through the default theme function: theme_ds_field_reset
Debugging
We found it goes wrong somewhere in ds_theme_suggestions_field_alter
Work around
Use expert as default setting.
I will check this evening if I can create a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fixing-custom-view-mode-2593329-1.patch | 648 bytes | danielbeeke |
Comments
Comment #2
danielbeeke commentedThis problem has to do with the changing of the view mode to '_custom',
See https://www.drupal.org/node/2563925,
Maybe there are more parts where we need to change something.
Comment #3
aspilicious commentedI think I have a better shorter solution but you get the credits for finding it.
Comment #5
aspilicious commentedThis should fix your problem...