Wrapper container

Hi,

I would like to wrap each block in my container.
Is it possible to do this with containers?
I try that but it doesn’t work obviously:

<?php
    $area = new ContainerArea($container, 'Flex');
    $area->setContainerWrapperStart('<div class="mb-3 mx-1">');
    $area->setContainerWrapperEnd('</div>');
    $area->display($c);
 ?>

I also try that:

<?php
    $area = new ContainerArea($container, 'Flex');
    $area->setBlockWrapperStart('<div class="mb-3 mx-1">');
    $area->setBlockWrapperEnd('</div>');
    $area->display($c);
    ?>

Does setBlockWrapperStart() work ??

https://documentation.concretecms.org/api/9.1.1/Concrete/Core/Area/Area.html#method_setBlockWrapperStart

Edit: I guess not :smiley:

Unfortunately, it seems that the method does not exist for containers. Maybe in a next version

Looks like setBlockWrapperStart() is native to areas only. A setContainerWrapperStart() would be nice! Might be worth making an issue on github.

v9.2.0 introduces some block design options for containers.

I have a new marketplace addon that facilitates adding css to containers and variants of containers

There are also some marketplace ideas and issues for containers you may want to comment on or support