Da du unter Contao 5 bist, ist das ce_text Template nun ein Twig-Template.
Du kannst es wie folgt zurücksetzen, damit wieder html5 genutzt wird:
The legacy content elements and their templates are still around and will only be dropped in Contao 6. If you want to use them instead of the new ones, you can opt in on a per-element basis by adding the respective lines to your contao/config/config.php:
PHP-Code:
// Restore legacy content elements
$GLOBALS['TL_CTE']['texts']['code'] = \Contao\ContentCode::class;
$GLOBALS['TL_CTE']['texts']['headline'] = \Contao\ContentHeadline::class;
$GLOBALS['TL_CTE']['texts']['html'] = \Contao\ContentHtml::class;
$GLOBALS['TL_CTE']['texts']['list'] = \Contao\ContentList::class;
$GLOBALS['TL_CTE']['texts']['text'] = \Contao\ContentText::class;
$GLOBALS['TL_CTE']['texts']['table'] = \Contao\ContentTable::class;
$GLOBALS['TL_CTE']['links']['hyperlink'] = \Contao\ContentHyperlink::class;
$GLOBALS['TL_CTE']['links']['toplink'] = \Contao\ContentToplink::class;
$GLOBALS['TL_CTE']['media']['image'] = \Contao\ContentImage::class;
$GLOBALS['TL_CTE']['media']['gallery'] = \Contao\ContentGallery::class;
$GLOBALS['TL_CTE']['media']['player'] = \Contao\ContentPlayer::class;
$GLOBALS['TL_CTE']['media']['youtube'] = \Contao\ContentYouTube::class;
$GLOBALS['TL_CTE']['media']['vimeo'] = \Contao\ContentVimeo::class;
$GLOBALS['TL_CTE']['files']['downloads'] = \Contao\ContentDownloads::class;
$GLOBALS['TL_CTE']['files']['download'] = \Contao\ContentDownload::class;
$GLOBALS['TL_CTE']['includes']['teaser'] = \Contao\ContentTeaser::class;
Um Twig zu nutzen musst du nur der Ordnerkonvention folgen:
HTML-Code:
code (content_element/code)
headline (content_element/headline)
html (content_element/html)
list (content_element/list)
text (content_element/text)
table (content_element/table)
hyperlink (content_element/hyperlink)
toplink (content_element/toplink)
image (content_element/image)
gallery (content_element/gallery)
youtube (content_element/youtube)
vimeo (content_element/vimeo)
downloads (content_element/downloads)
download (content_element/download)
player (content_element/player)
teaser (content_element/teaser)
Sprich, wenn du ein text-element Template überarbeiten willst...
in contao/templates folgende Ordnerstruktur herstellen:
"content_element/text/deinTemplateName.html.twig
Da es sich um Twig handelt:
https://ourcodeworld.com/articles/re...er-should-know