-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
When i tried to override how a specific layout field renders in forms and on detail pages (EaFormFieldsetOpenType) i tried to override the crud/detail.html.twig in my app in templates/bundles/EasyAdminBundle/crud/detail.html.twig.
But it seems i cannot override any macro from this file, without copying over half of the original template and this is something i try to avoid as much as possible, to not interfer with easyadmin updates.
I think it would make sense to extract the macros contained in the detail.html.twig to an own template and then use it from the detail template. This seems related to #1514
Im not too sure this works easily with macros as is (_self scoping), but an alternative could be converting them to normal templates and create new macros that use "embed with" to use templates that can be overriden by the app.
This problem does not only concern the render_layout_field, but rather all macros i guess. It would be nice to make them easy to modify without copying whole ea templates over. But maybe im missing a better method, then i would be very thankful for a little heads up :)