• antoniomartoni

    (@antoniomartoni)


    Hi there,
    I am working on a project where I have to integrate a complex design pattern through a set of core & custom blocks.

    To avoid going too deep in the nesting, I am looking for a way to hide innerBlocks (core) from the list view tree.

    I’m using the templateLock="all” in order to control the layout already. Is there a way to make them disappear from the list view tree ?

    In the above example, I would want to hide the core/heading and the core paragraph from the list view tree.
    <InnerBlocks
    allowedBlocks={["core/paragraph", "core/list","core/heading"]}					templateLock="all" 
    template={[
    ["core/heading",{placeholder: "Ajouter ici votre contenu",lock: "true"}],
    ["core/paragraph",{placeholder: "Ajouter ici votre contenu",lock: "true"}],
    ]}
    />
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Hiding InnerBlocks from the list Tree view’ is closed to new replies.