Ich würde gerne aus einem "normalen" Textarea der Erweiterung dreibein/contao-jobposting-bundle ein Textarea mit tinyMCE Editor machen.
"Alte" Definition des Felds:
PHP-Code:
...
'teaser' => [
'exclude' => true,
'search' => true,
'inputType' => 'textarea',
'eval' => ['tl_class' => 'clr'],
'sql' => ['type' => Types::TEXT, 'notnull' => false],
],
...
Dazu habe ich unter app/Resources/contao/dca eine Datei tl_job.php mit diesem Code angelegt:
PHP-Code:
<? php
$GLOBALS['TL_DCA']['tl_job']['fields']['teaser']['eval']['rte'] = 'tinyMCE';
Funktioniert leider nicht, Fehlermeldungen beim cache-warmup:
HTML-Code:
CRITICAL [console] Error thrown while running command "cache:warmup --env=prod". Message: "Syntax error, unexpected T_VARIABLE on line 3" ["exception" => PhpParser\Error { …},"command" => "cache:warmup --env=prod","message" => "Syntax error, unexpected T_VARIABLE on line 3"]
Was machen ich falsch?
Lesezeichen