【发布时间】:2021-05-08 00:42:49
【问题描述】:
所以在我的奏鸣曲管理 CMS 中,我正在尝试添加一个名为 info 的页面
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->tab('Info')
->end();
}
在我的 admin.yml 中,我有这个调用:
calls:
- [ setTemplates, [{edit: admin\virtual-event-info.html.twig }]]
然后在一个树枝文件中我有这个
{% extends 'SonataAdminBundle:CRUD:base_edit.html.twig' %}
<h1>I just want to write some basic static html out here</h1>
我只想为常见问题解答写一个基本的静态 html 页面。我不想接受任何输入或要求任何数据,我只想让新人知道有关 CMS 那个部分的一些基本信息。谁能指导我如何让该 HTML 真正显示在该选项卡下?
【问题讨论】:
标签: symfony twig sonata-admin sonata