It looks like you're new here. If you want to get involved, click one of these buttons!
'repeatable' => TRUE
$fields['content'] = array(
'display_label' => TRUE,
'add_extra' => FALSE,
'init_display' => 'all',
'dblclick' => 'toggle',
'repeatable' => TRUE,
'type' => 'template',
'fields' =>
array(
'type'=>array('type' => 'toggler', 'label' => 'Type', 'prefix' => 'toggle_', 'options' => array('banner_text' => 'Banner + text', 'slider' => 'slider'), 'mode' => 'radios'),
'banner'=>array('type' => 'asset', 'class' => 'toggle toggle_banner_text'),
'slider'=>array(
'type'=>'template',
'class'=>'toggle toggle_slider',
'display_label' => false,
'label' => ' ',
'add_extra' => false,
'repeatable' => TRUE,
'init_display' => 'all',
'fields' => array(
'slide' => array('type' => 'asset', 'class' => 'toggle toggle_slider',),
),
)
)
);
Comments
I also noticed if add in nested template field with type hidden it works as it should!
like so:
'fields' => array( 'slide' => array('type' => 'asset', 'class' => 'toggle toggle_slider',), 'hidden' => array('type' => 'hidden', 'class' => 'toggle toggle_slider'), ),
https://github.com/daylightstudio/FUEL-CMS/tree/develop