PaletteManipulator Palette not found
Hallo zusammen,
ich finde den Fehler nicht.
Ich habe zuerst dem Bundle gesagt, dass es nach dem Core geladen wird:
Hier die /src/ContaoManager/Plugin.php
PHP-Code:
namespace Acme\ContentBundle\ContaoManager;
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
class Plugin implements BundlePluginInterface
{
/**
* {@inheritdoc}
*/
public function getBundles(ParserInterface $parser)
{
return [
BundleConfig::create('Acme\ContentBundle\AcmeContentBundle')->setLoadAfter([
'Contao\CoreBundle\ContaoCoreBundle',
]),
];
}
}
Dann den DCA in tl_content.php definiert.
Hier der DCA:
PHP-Code:
<?php
/*
* Extend palettes
*/
\Contao\CoreBundle\DataContainer\PaletteManipulator::create()
->addField('player_custom_size', 'player_legend', \Contao\CoreBundle\DataContainer\PaletteManipulator::POSITION_APPEND)
->applyToPalette('default', 'tl_content');
/**
* Player size
*
*/
$GLOBALS['TL_DCA']['tl_content']['fields']['player_custom_size'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_content']['player_custom_size'],
'explanation' => &$GLOBALS['TL_LANG']['tl_content']['player_custom_size'],
'default' => '1',
'exclude' => true,
'inputType' => 'select',
'options' => array('1' => '1/3', '2' => '1/2 (halbe Breite)', '3' => 'volle Breite'),
'eval' => array('mandatory' => true, 'tl_class'=>'clr w50'),
'sql' => "varchar(32) NOT NULL default ''"
);
?>
Das Installtool meldet einen Fehler.
In der Log-Datei steht:
Code:
[2018-01-29 09:53:43] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction","_route":"contao_install"},"request_uri":"domain.tld/contao/install","method":"POST"} []
[2018-01-29 09:53:43] app.CRITICAL: An exception occurred. {"exception":"[object] (Contao\\CoreBundle\\Exception\\PaletteNotFoundException(code: 0): Palette \"default\" not found in table \"tl_content\" at /srv/kunden/domain/public_html/vendor/contao/core-bundle/src/DataContainer/PaletteManipulator.php:123)"} []
Jetzt bin ich allerdings überrascht, dass die Palette 'default' nicht gefunden wird. Denn die gibt es ja wohl in tl_content.
Kann jemand erkennen was ich falsch gemacht habe?
Grüße