vonheldenundgestalten/contao-autowrap

There is no license information available for the latest version (5.3.0) of this package.

Contao 4 bundle to wrap content elements for easier page layout and HTML organization.

5.3.0 2024-02-07 13:55 UTC

This package is auto-updated.

Last update: 2024-11-22 15:20:15 UTC


README

Contao 4 bundle to wrap content elements for easier page layout and HTML organization.

The extension automatically wraps the same content elements in a div for applying CSS to the collection of items, for example flex or grid based arrangements of the unit. Current structure for the wrap:

<div class="autowrap autowrap-<elementname> autowrap-element-count-<number of elements>">
    <div class="inside">
       <elements>
    </div>
</div>

Elements and Aliases for the same element can be mixed.

Usage

  • Go to settings and select which elements should be wrapped
  • Done :)

Screenshot of a recent project using autowrap. Don't mind the weird element names, we use a lot of custom content elements ;)

Multiple content elements can be selected - but we only create groups of the same elements within one wrap.