Rocksolid Custom Elements | radiobunnton statt checkboxen
Hallo,
für eine Art Speiseplan hab ich mir ein Inhaltselement gebaut, dass 6 Felder erstellt.
In jedem Feld ist etwas Text und dann eine Auswahl für 4 Icons via checkbox.
Nun besteht jedoch der Wunsch, dass man nur eines der Icons pro Feld auswählen kann, somit müßte ich die Checkboxen gegen ein Radio Button tauschen.
Das hat bisher nicht geklappt, wenn man den "inputType" nur gegen "radio", "radiobox" oder "radiobutton" austauscht.
Hat jemand eine Idee wie ich das richtig anstelle?
Leider hab ich auch in der Doku die betreffende Stelle nicht gefunden.
Danke vorab für eure Mühe.
PHP-Code:
return array(
'label' => array('text'),
'types' => array('content'),
'contentCategory' => 'texts',
'standardFields' => array('cssID'),
'fields' => array(
'boxes' => array(
'label' => array('Tag', ''),
'elementLabel' => '%s. Spalte',
'inputType' => 'list',
'minItems' => 1,
'maxItems' => 6,
'fields' => array(
'text' => array(
'label' => array('Text', ''),
'eval' => array('rte' => 'tinyMCE'),
'inputType' => 'textarea',
),
'ingedienc' => array(
'label' => array('Inhaltsstoffe', ''),
'inputType' => 'textarea',
),
'iconGreen' => array(
'label' => array('grün', 'icon 1'),
'inputType' => 'checkbox',
'eval' => array('tl_class' => 'w50'),
),
'iconYellow' => array(
'label' => array('gelb', 'icon 2'),
'inputType' => 'checkbox',
'eval' => array('tl_class' => 'w50'),
),
'iconRed' => array(
'label' => array('rot', 'icon 3'),
'inputType' => 'checkbox',
'eval' => array('tl_class' => 'w50'),
),
'iconVegan' => array(
'label' => array('vital', 'icon 4'),
'inputType' => 'checkbox',
'eval' => array('tl_class' => 'w50'),
),
),
),
),
);