网站的Sonata页面模板

时间:2018-08-14 11:02:38

标签: sonata

我正在寻找网站的设置模板。

我的配置:

sonata_page:
    slugify_service: sonata.core.slugify.cocur
    multisite: host
    use_streamed_response: false
    page_defaults:
        homepage: {decorate: false}

    router_auto_register:
        enabled: true
        priority: 150
    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'

    default_template: default
    templates:
        default:
          path: 'base_main.html.twig'

存在类似

default_template: default
        templates:
            first_domain:
              site: 1
              path: 'first_domain_main.html.twig'

所以我只能看到页面ID为1的模板?

0 个答案:

没有答案