문제

What does the context means inside the configurations of the Sonata Block Bundle? What is for?

sonata_block:
    default_contexts: [cms]
    blocks:
        sonata.admin.block.admin_list:
            contexts:   [admin]
도움이 되었습니까?

해결책

Sorry for the delay, a context is used to group a set of blocks. So you can have block related to a CMS context, or to the admin.

So an admin block will be never used in the CMS context.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top