Weisser Screen im BE durch custom element template Code
Hallo zusammen
ich habe folgendes wunderbare Rocksolid Custom Element, welches soweit tut was es soll: mehrere Bilder mit alt-tag, caption, title und lightbox ausgeben.
Allerdings bekomme ich jedesmal, wenn ich im Backend (Conto 3.5.27) ein Inhaltselement speichern möchte, oder auch nur mit dem Selectmenü ein anderes Element aussuchen möchte, einen weissen Screen.
Wenn ich die Browser-zurück Funktion nutze, ist das gewähle Inhaltselement da und bereit zur Eingabe. Dasselbe passiert, wenn ich ein Inhaltselement speichern möchte: Weisser Screen im BE.
Wenn ich die beiden Templates des Custom Elements aus dem Templates Ordner rausnehme, ist alle i.O. Daher meine Vermutung, dass irgendein "Störfaktor" in diesen Template Codes drin ist.
Das config template:
PHP-Code:
<?php
// rsce_bildergalerie_config.php
return array(
'label' => array('Bildergalerie', 'Einige Bilder'),
'types' => array('content'),
'contentCategory' => 'texts',
'moduleCategory' => 'miscellaneous',
'standardFields' => array('cssID'),
'fields' => array(
'headline' => array(
'inputType' => 'standardField',
'label' => array('Überschrift',''),
'options' => array('h2', 'h3', 'h4', 'h5', 'h6', 'p'),
),
'sizes' => array(
'label' => array('Bildbreite und Bildhöhe', 'Für alle Bilder'),
'inputType' => 'imageSize',
'options' => \System::getImageSizes(),
'reference' => &$GLOBALS['TL_LANG']['MSC'],
'eval' => array(
'rgxp' => 'digit',
'includeBlankOption' => true,
'tl_class' => 'w50 clr',
),
),
'slides' => array(
'label' => array('Bilder', ''),
'elementLabel' => 'Bild %s',
'inputType' => 'list',
'minItems' => 1,
'maxItems' => 8,
'fields' => array(
'image' => array(
'label' => array('Bild', ''),
'inputType' => 'fileTree',
'eval' => array(
'fieldType' => 'radio',
'filesOnly' => true,
'extensions' => \Config::get('validImageTypes'),
),
),
'alt' => array(
'label' => array('Alt-Tag', ''),
'inputType' => 'text',
'eval' => array(
'tl_class' => 'w50',
'mandatory' => true
),
),
'title' => array(
'label' => array('Title tag', ''),
'inputType' => 'text',
'eval' => array(
'tl_class' => 'w50',
'mandatory' => false
),
),
'caption' => array(
'label' => array('Bildunterschrift', ''),
'inputType' => 'text',
'eval' => array(
'tl_class' => 'w50',
'mandatory' => false
),
),
),
),
),
);
Das rsce_bildergalerie.html5 Template:
Code:
<div class="flex-container spacer-bottom">
<?php foreach ($this->slides as $index => $slide): ?>
<div class="ce_image item-bild">
<figure class="image_container">
<?php if ($image = $this->getImageObject($slide->image, $this->size)): ?>
<?php $image->picture['alt'] = $slide->alt ?>
<?php $image->picture['title'] = $slide->title ?>
<?php $image->picture['caption'] = $slide->caption ?>
<a data-lightbox="<?php echo $this->id ?>" href="<?php echo $image->singleSRC ?>">
<?php $this->insert('picture_default', $image->picture) ?>
</a>
<figcaption class="caption"><?= $slide->caption ?></figcaption>
<?php endif ?>
</figure>
</div>
<?php endforeach ?>
</div>
Weiss jmd., was hier einen weissen Screen veursachen könnte?