0
我正在安裝Sonata Page Bundle,一切正常,除了當我嘗試創建塊時,選擇塊類型的步驟,我得到了一個沒有佈局的頁面(請參閱附截圖)Sonata Page Bundle:BlockCreate not loading佈局
這裏是我的sonata_page.yml配置文件:
sonata_page:
slugify_service: sonata.core.slugify.cocur # old BC value is sonata.core.slugify.native
multisite: host
default_template: default # template key from templates section, used as default for
templates:
default:
path: '::base.html.twig'
name: 'default'
containers:
header:
name: Header
content_top:
name: Top content
content:
name: Main content
content_bottom:
name: Bottom content
footer:
name: Footer
matrix:
layout: |
HHHHHHHH
TTTTBBBB
TTTTBBBB
TTTTBBBB
TTTTBBBB
CCCCCCCC
CCCCCCCC
FFFFFFFF
mapping:
H: header
T: content_top
C: content
B: content_bottom
F: footer
# Generates a snapshot when a page is saved (from the admin)
direct_publication: false # or %kernel.debug% if you want to publish in dev mode (but not in prod)
multisite: host
use_streamed_response: true # set the value to false in debug mode or if the reverse proxy does not handle streamed response
ignore_route_patterns:
- ^(.*)admin(.*) # ignore admin route, ie route containing 'admin'
- ^_(.*) # ignore symfony routes
ignore_routes:
- sonata_page_cache_esi
- sonata_page_cache_ssi
- sonata_page_js_sync_cache
- sonata_page_js_async_cache
- sonata_cache_esi
- sonata_cache_ssi
- sonata_cache_js_async
- sonata_cache_js_sync
- sonata_cache_apc
ignore_uri_patterns:
- ^/admin\/ # ignore admin route, ie route containing 'admin'
page_defaults:
homepage: {decorate: false} # disable decoration for homepage, key - is a page route
# manage the http errors
catch_exceptions:
not_found: [404] # render 404 page with "not_found" key (name generated: _page_internal_error_{key})
fatal: [500] # so you can use the same page for different http errors or specify specific page for each error
cmf_routing:
chain:
routers_by_id:
# enable the DynamicRouter with high priority to allow overwriting configured routes with content
# cmf_routing.dynamic_router: 200
# enable the symfony default router with a lower priority
sonata.page.router: 150
router.default: 100
有我錯過了什麼地方?
非常感謝您的幫助。