Hallo zusammen,
ich habe ein Custom Element bei dem "Mehrere bearbeiten" nicht möglich ist.
- Wähle ich "Text" sind alle Textelemente leer (siehe MB Text.png)
- Wähle ich "Inhaltselement Template" waren zuerst die Custom Templates nicht sichtbar. Jetzt steht "ubnekannte" Option davor und das zweite Template "rsce_ausbilder.html5" ist gar nicht sichtbar (siehe MB Template.png)
- Wähle ich "Überschrift" ist Mehrere bearbeiten möglich (siehe MB Headline.png)
Code HTML:
Code:
<?php
if (TL_MODE === 'BE') {
echo $this->headline;
#echo $this->text;
echo $this->insert('image', $this->arrData);
return;
}
?>
<div class="card ausbilder">
<div class="ce_image block m-0">
<figure class="image_container" >
<?php if ($this->href): ?>
<a href="<?= $this->href ?>"<?php if ($this->linkTitle): ?> title="<?= $this->linkTitle ?>"<?php endif; ?><?= $this->attributes ?>>
<?php endif; ?>
<?php $this->insert('picture_default', $this->picture); ?>
<?php if ($this->href): ?>
</a>
<?php endif; ?>
</figure>
</div>
<div class="ausbilder-info">
<div class="">
<h4><?php echo $this->headline ?></h4>
<div class="textInner p-2">
<?php echo $this->text ?>
</div>
</div>
</div>
</div>
Code PHP:
PHP-Code:
<?php
// rsce_my_element_config.php
return array(
'label' => array('Ausbilder', ''),
'types' => array('content', 'module'),
'contentCategory' => 'texts',
'moduleCategory' => 'miscellaneous',
'standardFields' => array('headline', 'image'),
'wrapper' => array(
'type' => 'none',
),
'fields' => array(
'text' => array(
'label' => array('Infos zum Ausbilder', ''),
'eval' => array('rte' => 'tinyMCE', 'mandatory' => true,),
'inputType' => 'textarea',
),
),
);
Contao: 4.12.3
RSCE: 2.3.6
Muss ich hier noch weitere Parameter angeben damit "Mehrere bearbeiten" funktioniert? "Text" ist z.B. kein "standardFields", was vermutlich zu diesem Problem führen könnte.
Edit:
Wenn das Feld nicht "text" heisst, kann ich es unter einem anderen Namen auch mit "Mehrere bearbeiten" verwenden.Ich würde es aber gern unter "text" haben weil es eigentlich kein spezielles Feld braucht.
VG Frank
Lesezeichen