-
5.3 - Keine Bildausgabe
Moin,
ich weiß nicht, was ich falsch mache, aber das Bild wird im Frontend nicht ausgegeben. Sowohl die Ausgabe über das Twig-Template, noch der Versuch über ein html5-Template funktionieren. Textfelder werden aber ausgegeben.
PHP-Code:
'bild' => [
'label' => ['Bild', 'Bild der Unterkunft'],
'inputType' => 'fileTree',
'eval' => [
'fieldType' => 'radio',
'filesOnly' => true,
'extensions' => 'jpg,jpeg,png,gif,svg',
'tl_class' => 'w50',
'mandatory' => true,
],
],
Twig:
PHP-Code:
{{ contao_figure(bild, [400, 400]) }}
oder html5:
PHP-Code:
<?= $this->figure($this->bild) ?>
Was mache ich falsch?
Vielen Dank im Voraus!
-
ich habe es hinbekommen.
PHP-Code:
{{ contao_figure(bild, [400, 400]) }}
funktioniert doch. Warum es vorher nicht ging, weiß ich nicht. Evtl. Cache nicht vernünftig geleert.