public function form_fields($values = array(), $related = array()) { $fields = parent::form_fields($values, $related); $fields['image']['folder'] = 'images/news'; // requires images/news folder to be created return $fields; }
public function form_fields($values = array(), $related = array()) { $fields = parent::form_fields($values, $related); $fields['image']['folder'] = 'images/events'; // requires images/events folder to be created unset($fields['link']); // comment out if you want a Link field return $fields; }