CheckAccess('Manage UredniDeska')) { return $this->DisplayErrorPage($id, $params, $returnid, $this->Lang('accessdenied')); } $datas = array(); // Main entries $datas['Úřední deska'] = UredniDeska::ExportDatas(); // By default, and if the module CMS Excel exists, we export to excel. if (MCFTools::IsModuleActive('CMSExcel')) { $params = array( 'creator' => 'M&C Factory', 'title' => 'Úřední deska export', 'subject' => 'Úřední deska export', ); $stack = cms_utils::get_module('CMSExcel')->buildExcel($datas,$params); $link = cms_utils::get_module('CMSExcel')->getExcelLink($stack,array('filename' => 'UredniDeska_export_'.date('Y-m-d_H-i-s').'.xls')); echo '

'.$this->lang('export').'

'.$this->lang('download').'

'; } else { ?>

lang('serialized_datas');?>

(Try to install the CMSExcel module to have a better export support)

Download as file

Download full entries as objects

Import entries from .dat file