Hallo zusammen,
ich muss in der Dateiverwaltung die Möglichkeit haben, für Bilder einen Titel länger als 255 Zeichen angeben zu können.
Dazu habe ich in der dcaconfig.php die folgende Zeile eingefügt:
Funktioniert auch auf den ersten Bilck - ich kann mehr als 255 Zeichen eingeben. Gespeichert und im Frontend angezeigt wird das auch. Wenn ich aber danach das Install Tool aufrufe bekomme ich eine Fehlermeldung:Code:$GLOBALS['TL_DCA']['tl_files']['fields']['meta']['eval']['metaFields']['title']['maxlength'] = 400;
Hat wahrscheinlich was mit dem blob zu tun in dem die Metadaten gespeichert werden:Code:Warning: Illegal string offset 'maxlength' in system/config/dcaconfig.php on line 4 #0 system/config/dcaconfig.php(4): __error(2, 'Illegal string ...', '/www/htdocs/w00...', 4, Array) #1 system/modules/core/library/Contao/DcaLoader.php(104): include('/www/htdocs/w00...') #2 system/modules/core/library/Contao/Controller.php(1298): Contao\DcaLoader->load(false) #3 system/modules/core/library/Contao/DcaExtractor.php(382): Contao\Controller::loadDataContainer('tl_files') #4 system/modules/core/library/Contao/DcaExtractor.php(128): Contao\DcaExtractor->createExtract() #5 system/modules/core/library/Contao/DcaExtractor.php(144): Contao\DcaExtractor->__construct('tl_files') #6 system/modules/core/library/Contao/Database/Installer.php(295): Contao\DcaExtractor::getInstance('tl_files') #7 system/modules/core/library/Contao/Database/Installer.php(111): Contao\Database\Installer->getFromDca() #8 system/modules/core/library/Contao/Database/Installer.php(41): Contao\Database\Installer->compileCommands() #9 system/modules/core/controllers/BackendInstall.php(633): Contao\Database\Installer->generateSqlForm() #10 system/modules/core/controllers/BackendInstall.php(177): Contao\BackendInstall->adjustDatabaseTables() #11 contao/install.php(24): Contao\BackendInstall->run() #12 {main}
Komme da aber nicht weiter. Was fehlt da?Code:'meta' => array ( 'label' => &$GLOBALS['TL_LANG']['tl_files']['meta'], 'inputType' => 'metaWizard', 'eval' => array('allowHtml'=>true, 'metaFields'=>array('title'=>'maxlength="255"', 'link'=>'maxlength="255"', 'caption'=>'maxlength="255"')), 'sql' => "blob NULL" )
Vielen Dank schon mal für eure Hilfe
Klaus

Zitieren
