Skip to content

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

Notifications You must be signed in to change notification settings

vonheldenundgestalten/contao-autowrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

contao-autowrap

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.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages