TYPO3 TCA-Typ in FLUID auswählen?
Ich verwende für das T3-Backend einen TCA-Typ. Select in a renderType = selectMultipleSideBySide
Hier der TCA-Code:
'features' => array(
'label' => 'Zusatz',
'config' => array(
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'size' => 10,
'minitems' => 0,
'maxitems' => 999,
'items' => array(
array(
'Parkplätze',
'parking'
),
array(
'Freies Wlan',
'wlan'
),
)
)
),
es funktioniert gut im Backend!
Aber wie kann ich die Daten jetzt richtig lesen? Ich bin jetzt nicht der richtige Weg für die Domain / das Model.
/**
* Features
*
* @var string
*/
protected $features = '';
/**
* Returns the features
*
* @return string $features
*/
public function getFeatures() {
return $this->features;
}
/**
* Sets the features
*
* @param string $features
* @return void
*/
public function setFeatures($features) {
$this->features = $features;
}
Der Debug-Code wird ausgegeben:features => 'parking,wlan' (12 chars)
a für jeden funktioniert nicht:
<f:for each="{newsItem.features}" as="featuresItem">
{featuresItem}<br />
</f:for>
danke für die Hilfe