"; $form.= $this->get_constructor_link_form("article"); $form.="
"; $form.= parent::get_form(); return $form; } public function save_form(){ $this->save_constructor_link_form("article"); return parent::save_form(); } public function render($datas){ $render_datas = array(); $render_datas['title'] = "Liste d'évènements"; $render_datas['events'] = array(); foreach($datas['events'] as $event){ $event->link = $this->get_constructed_link("article",$event->id); $render_datas['records'][]=$event; } return parent::render($render_datas); } public function get_format_data_structure(){ $datas = cms_article::get_format_data_structure("article",false); $datas[] = array( 'var' => "link", 'desc'=> $this->msg['cms_module_agenda_view_carousel_link_desc'] ); $format_datas = array( array( 'var' => "records", 'desc' => $this->msg['cms_module_carousel_view_carousel_records_desc'], 'children' => $this->prefix_var_tree($datas,"records[i]") ) ); $format_datas = array_merge($format_datas,parent::get_format_data_structure()); return $format_datas; } }