Skip to content

2.1.0

Compare
Choose a tag to compare
@zoglo zoglo released this 31 May 11:07
· 24 commits to 2.x since this release

Addition

  • Twig integration #34

  • Rewrite responsive classes to properly introduce aspect-ratios for videos without image sizes 048a098

  • Allow border-styles within inner dividers 9ae830a

Bugfixes

  • (Do not output numeric classes in the legacy gallery html template) b244929

Upgrading Version 2.0.* to ^2.1.*

Twig

Important

If you have overwritten the HTML-Templates for following contao components, you'll have to rewrite them into twig.
Getting used to twig right now is the best long-term goal to provide proper updates from contao elements without
relying on modifying too many tempplates.

\Contao\ContentHeadline::class;
\Contao\ContentList::class;
\Contao\ContentText::class;
\Contao\ContentTable::class;
\Contao\ContentHyperlink::class;
\Contao\ContentToplink::class;
\Contao\ContentImage::class;
\Contao\ContentGallery::class;
\Contao\ContentPlayer::class;
\Contao\ContentYouTube::class;
\Contao\ContentVimeo::class;
\Contao\ContentDownloads::class;
\Contao\ContentDownload::class;
\Contao\ContentTeaser::class;

But I want to go back to HTML5!

Please refer to the upgrade.md from Contao if you want to restore the classes, additionally you can just install plugins like:
https://github.com/zoglo/contao-legacy-templates

Please note that support for html templates will be dropped when Contao 4.13 support ends - get used to twig

Classname changes with BC layer

The legacy .ce_*-classnames are reintroduced into the Twig-Templates. Please refer to the new ones when using Contao 5.3 in your own skin as they will be removed in version 2.2.

old class new class
ce_headline content-headline
ce_list content-list
ce_text content-text
ce_table content-table
ce_hyperlink content-hyperlink
ce_toplink content-toplink
ce_image content-image
ce_gallery content-gallery
ce_player content-player
ce_youtube content-youtube
ce_vimeo content-vimeo
ce_downloads content-downloads
ce_download content-download
ce_teaser content-teaser

Structure changes

The gallery element does not use div anymore and follows the original ul style - Grid lists work like before.