我正在使用Symfony2和Sonata管理软件包进行项目。 如何在action的configureShowFields中应用过滤器原始的小枝(显示格式化文本)?Sonata管理软件包上的原始过滤器configureShowFields
我不会重写索纳塔模板...
我configureShowFields的代码:
protected function configureShowFields(ShowMapper $showMapper)
{
$showMapper
->add('active')
->add('title')
->add('subtitle') // I need this field with twig RAW filter
->add('description') //I need this field with twig RAW filter
->add('url')
->add('date')
->add('tags')
->add('file');
}
见一个简单的类似的问题(http://stackoverflow.com/q/8729439/2257664)列表的文本字段的自定义SonataAdminBundle渲染]解。 –