.. include:: ../Includes.txt .. _integration: =========== Integration =========== .. _integration_templating: Templating ========== When creating templates structures dividing the available width might be defined (e.g. columns). By providing the system with information regarding the available space within the structures the content rendering can be optimized. A typical scenario is to render images in columns. For this purpose the following view helpers are available: pp:render.bootstrap.column -------------------------- .. code-block:: html
The above code results in: .. code-block:: html
.. note:: The `count`-attribute is used when the width from the column isn't specified by the classes (e.g. when using `col`) pp.structure.wrap.column ------------------------ .. code-block:: html
The above code results in: .. code-block:: html
pp:structure.multiplier.getForColumn ------------------------------------ .. code-block:: html
{pp:structure.multiplier.getForColumn(class: 'col-xl-4', count: 2, as: '_colMultiplier')}
{pp:structure.multiplier.getForColumn(multiplier: _colMultiplier, class: 'col-md-6 col-xl-12', count: 2, as: '_colMultiplier')} {bk2k:data.imageVariants(as:'_colVariants', variants: variants, multiplier: _colMultiplier)}