Details
-
Bug
-
Resolution: Fixed
-
High
-
2.2.3
-
None
Description
The Standard Design overwrites SiteAccess-aware settings for Kernel templates instead of prepending them to allow Developer (or 3rd party Bundle) set templates either for his own fields or to override existing fields views.
While this behavior can be disabled by setting ez_platform_standard_design.override_kernel_templates to false, it was not the intention to overwrite existing end-Developer or 3rd party settings.
Steps to reproduce
- Install clean version of eZ Platform.
- Make sure that ezplatform.yaml setting ez_platform_standard_design.override_kernel_templates is set to true.
- Add a Twig template:
app/Resources/views/content_fields.html.twig
{% block ezstring_field %} {% spaceless %} Overridden! {% endspaceless %} {% endblock %}
- Configure added template:
app/config/ezplatform.yml
ezpublish: system: default: field_templates: - { template: 'content_fields.html.twig', priority: 1 }
- Clear caches.
- Go to homepage.
Expected result
The rendered name and short_name fields should contain Overridden! text.
Actual result
There is no change. Custom view is not used.