container of banners which displays a grid of banner with a label and variable height and width. The children blocks of this Layout Block are typically meant to be banner Layout Blocks.
Picture:
...
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
To make the children block simple to configure, we recommend that the layout size differences are part of the configuration of the banner_grid. In the example, we have a list of elements in the parameter “grid” which indicate the number of cols and rows for each element per device (considering a typical 16 cols grid framework like Bootstrap). To have the same result as in the picture, the grid would need to be:
We recommend to loop through the structure to define automatically the order of the banner index, which would do a mapping like this (the number beint the index of the banner in the children block:
|
...