答案 0 :(得分:2)
你需要覆盖sonata-project/admin-bundle/Resources/views/standard_layout.html.twig
它在第247行:
{% block side_bar_after_nav %}
<p class="text-center small" style="border-top: 1px solid #444444; padding-top: 10px">
{% block side_bar_after_nav_content %}
<a href="https://sonata-project.org" rel="noreferrer" target="_blank">sonata project</a>
{% endblock %}
</p>
{% endblock %}
答案 1 :(得分:0)
重新定义奏鸣曲模板:
sonata_admin:
templates:
layout: 'admin/app_layout.html.twig'
在模板重新定义块side_bar_after_nav_content
中:
{% extends 'SonataAdminBundle::standard_layout.html.twig' %}
{% block side_bar_after_nav_content %}
{# Removes original sonata link #}
{% endblock %}