Skip to content

Commit ab1b122

Browse files
authored
Fix palette insertion to modern layouts (#37)
1 parent 4ce0c8d commit ab1b122

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [2.2.1] - 2026-05-06
6+
- Fixed: encore fields not show up on twig layouts ([#37](https://github.com/heimrichhannot/contao-encore-bundle/pull/37))
7+
- Deprecated: encoreStylesheetsImportsTemplate and encoreScriptsImportsTemplate fields ([#37](https://github.com/heimrichhannot/contao-encore-bundle/pull/37))
8+
59
## [2.2.0] - 2026-04-20
610
- Added: support for modern twig layouts of contao 5.7 ([#34](https://github.com/heimrichhannot/contao-encore-bundle/pull/34))
711
- Added: EntrypointsBuilder concept for retriving current page entrypoints ([#34](https://github.com/heimrichhannot/contao-encore-bundle/pull/34))

contao/dca/tl_layout.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
$dca['palettes']['__selector__'][] = 'addEncore';
2121

2222
PaletteManipulator::create()
23-
->addLegend('encore_legend', 'jquery_legend', PaletteManipulator::POSITION_BEFORE)
23+
->addLegend('encore_legend', 'modules_legend', PaletteManipulator::POSITION_AFTER)
2424
->addField('addEncore', 'encore_legend', PaletteManipulator::POSITION_APPEND)
25-
->applyToPalette('default', 'tl_layout');
25+
->applyToPalette('default', 'tl_layout')
26+
->applyToPalette('modern', 'tl_layout');
2627

2728
/*
2829
* Subpalettes

contao/languages/de/tl_layout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
'Legen Sie hier fest, welche webpack-Entrys auf welchen Seiten gerendert werden sollen. Sie können diese Festlegungen auf eventuellen Unterseiten mit Seitenvererbung überschreiben.';
1919
$lang['encoreEntries_entry'][0] = 'Entry';
2020
$lang['encoreEntries_active'][0] = 'Aktiv';
21-
$lang['encoreStylesheetsImportsTemplate'][0] = 'Alternatives Stylesheets Import-Template';
21+
$lang['encoreStylesheetsImportsTemplate'][0] = 'Alternatives Stylesheets Import-Template (Veraltet)';
2222
$lang['encoreStylesheetsImportsTemplate'][1] = 'Wählen Sie hier bei Bedarf ein alternatives Import-Template für Stylesheets aus.';
23-
$lang['encoreScriptsImportsTemplate'][0] = 'Alternatives Javascript Import-Template';
23+
$lang['encoreScriptsImportsTemplate'][0] = 'Alternatives Javascript Import-Template (Veraltet)';
2424
$lang['encoreScriptsImportsTemplate'][1] = 'Wählen Sie hier bei Bedarf ein alternatives Import-Template für Javascript aus.';
2525

2626
/*

contao/languages/en/tl_layout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
'Select webpack entries that should be rendered on this and all inheriting pages. You can overwrite this setting on inheriting pages due page inheritance.';
1919
$lang['encoreEntries_entry'][0] = 'Entry';
2020
$lang['encoreEntries_active'][0] = 'Active';
21-
$lang['encoreStylesheetsImportsTemplate'][0] = 'Stylesheet import template';
21+
$lang['encoreStylesheetsImportsTemplate'][0] = 'Stylesheet import template (Deprecated)';
2222
$lang['encoreStylesheetsImportsTemplate'][1] = 'Choose an custom stylesheet import template.';
23-
$lang['encoreScriptsImportsTemplate'][0] = 'Javascript import template';
23+
$lang['encoreScriptsImportsTemplate'][0] = 'Javascript import template (Deprecated)';
2424
$lang['encoreScriptsImportsTemplate'][1] = 'Choose a custom javascript import template.';
2525

2626
/*

0 commit comments

Comments
 (0)