在工作应用程序顶部的Sonata PageBundle安装中,转到.../app_dev.php/
产生
event.DEBUG: Notified event "sonata.block.event.breadcrumb" to listener "Sonata\SeoBundle\Event\BreadcrumbListener::onBlock". [] []
app.ERROR: [cms::blockContext] block.id=54008 - error while resolving options - The option "context" does not exist. Known options are: "attr", "cache_policy", "children_class", "current_class", "current_uri", "extra_cache_keys", "first_class", "include_homepage_link", "last_class", "menu_class", "menu_name", "menu_template", "safe_labels", "template", "title", "ttl", "use_cache" [] []
app.INFO: [cms::renderBlock] block.id=54008, block.type=sonata.seo.block.breadcrumb.homepage [] []
存在解决方案?
答案 0 :(得分:1)
再次被思考网页所愚弄是最新的如何做某事。隐藏在...\vendor\sonata-project\cache-bundle\Resources\doc\installation.rst
内的是建议:
Add block context manager:
.. code-block:: yaml
# app/config/config.yml
sonata_block:
context_manager: sonata.page.block.context_manager