It looks like you're new here. If you want to get involved, click one of these buttons!
public function form_fields($values = array(), $related = array())
{
$fields = parent::form_fields($values, $related);
$fields['Général'] = array('type' => 'fieldset',
'order' => 1,
'class' => 'tab');
$fields['newsletter_numero']['order'] = 2;
$fields['uri_newsletter']['order'] = 3;
$fields['publication_date']['order'] = 4;
$fields['testee']['order'] = 5;
$fields['published']['order'] = 6;
$fields['Entêtes'] = array('type' => 'fieldset',
'order' => 100,
'class' => 'tab');
$fields['entetes'] = array(
'order' => 101,
'type' => 'template',
'display_label' => FALSE,
'label' => 'Entête',
'add_extra' => FALSE,
'repeatable' => TRUE,
'title_field' => 'entete',
'fields' =>
array(
'texte' => array(
'type' => 'text',
'label' => 'Texte',
),
'image' => array(
'type' => 'asset',
'label' => 'image',
'folder' => NEWSLETTER_PATH . 'assets/images/',
),
),
);
return $fields;
}
Comments
yes i am late but since i found a workaround