symfony - How owerride 'show' template in new version sonata admin -


how can override 'show' template in new version? before extend in template base template:

{% extends 'sonataadminbundle:crud:base_show.html.twig' %}  

and override

{% block show_field %} content {% endblock %}.  

but not work. template me need extend now?

ps want override template 1 entity so, global override not me

try if base_show_macro template looking for:

vendor/sonata-project/admin-bundle/resources/views/crud/base_show_macro.html.twig 

or in twig:

{% extends 'sonataadminbundle:crud:base_show_macro.html.twig' %}  

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -