Liste der Anhänge anzeigen (Anzahl: 1)
Kein Vorschaubild im Backend, obwohl 'image' als erstes abgefragt wird
Hallo,
[madeyourday/contao-rocksolid-custom-elements] v2.3.5 mit cto 4.9.19 (lokal via Laragon)
Im Backend wird kein Vorschaubild, keine Vorschauinfo (mehr) angezeigt.
Eigentlich sollte doch zumindest das Bild als Vorschau kommen, oder?
Ich kann leider nicht sagen, ab welchem Update dies so war.
PHP-Code:
<?php
return[
'label' => [
'de' => ['Hintergrundbild','Fügen Sie ein Hintergrundbild ein.'],
],
'types' => ['content','module'],
'contentCategory' => 'WERBEpanorama',
'modulCategory' => 'WERBEpanorama',
// 'beTemplate' => 'be_wildcard',
'fields' => [
'image' => [
'label' => [
'de' => ['Hintergrundbild','Wählen Sie ein Hintergrundbild'],
],
'inputType' => 'fileTree',
'eval' => [
'fieldType' => 'radio',
'filesOnly' => true,
'extensions' => \Config::get('validImageTypes'),
],
],
'overlay' => [
'label' => [
'de' => ['Overlay','Fügt dem Hintergrundbild ein Overlay hinzu'],
],
'inputType' => 'checkbox',
'eval' => [
'tl_class' => 'clr w50 m12',
],
'default' => true,
],
'headline' => [
'label' => [
'de' => ['Überschrift','Hier können Sie dem Inhaltselement eine Überschrift hinzufügen.'],
],
'inputType' => 'inputUnit',
// 'options' => ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
'options' => ['h1'],
'eval' => [
'tl_class' => 'clr w50',
'allowHtml' => true,
],
'default' => [
'unit' => 'h1',
'value' => '',
],
],
'subheadline' => [
'label' => [
'de' => ['Unterüberschrift','Hier können Sie eine Unterüberschrift hinzufügen.'],
],
'inputType' => 'inputUnit',
//'options' => ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
'options' => ['h2','h3'],
'eval' => [
'tl_class' => 'w50 clr',
'allowHtml' => true,
],
'default' => [
'unit' => 'h3',
'value' => '',
],
],
'text' => [
'label' => [
'de' => ['Zusatztext',''],
],
'inputType' => 'textarea',
'eval' => [
'rte' => 'tinyMCE',
'tl_class' => 'clr',
],
],
'html' => [
'label' => [
'de' => ['HTML',''],
],
'inputType' => 'textarea',
'eval' => [
'tl_class' => 'clr',
'allowHtml' => true,
'class' => 'monospace',
'rte' => 'ace|html',
'explanation' => 'insertTags',
],
],
],
];
https://community.contao.org/de/atta...6&d=1629278713
Anhang 24846
Jemand eine Idee?