我已经按照docs中的说明配置了SeoBundle:sonata_seo:page:title:Defaulttitlemetas:name:description:Defualtdescriptionkeywords:key1,key2cmf_seo:title:seo.titledescription:seo.descriptioncontent_listener:enabled:false并放置在base.html.twig中:{#meta#}{{sonata_seo_title()}}{{sonata_seo_metadatas()}}...现在,当我刷新页面时,我可以看到设置
我安装了SeoBundle并配置了bundle以构建站点地图(docs)。AppKernel.php:newSonata\SeoBundle\SonataSeoBundle(),newSymfony\Cmf\Bundle\CoreBundle\CmfCoreBundle(),newSymfony\Cmf\Bundle\SeoBundle\CmfSeoBundle(),完整的包配置(config.yml):sonata_seo:page:title:Erasmusinternship–TrainingExperiencemetas:name:keywords:ErasmusInterns
我无法让SeoBundle从我的图片中提取标题我已经在config.yml中配置了“content_key”cmf_seo:content_key:"mykey"title:"%%content_title%%"我的实体实现了TitleReadInterfaceclassPictureimplementsTitleReadInterface{(...)publicfunctiongetSeoTitle(){return$this->title;}(...)}在Controller中我正在更新“mykey”属性:publicfunctionviewAction(Request$reque