Adding additional fields to datatable

hello,

i have a problem when trying to add additional fields to the output of actions_main.tpl .

for this i made a admin modul, but i only get the default data, like artnum … :


class smx_actions_main extends smx_actions_main_parent
{
	public function render()
	{
		$return = parent::render();

		if(oxConfig::getParameter("aoc"))
		{
			$aColumns = array(
								'container2' => array(
															array('subheadline', 'oxactions2article', 1, 0, 0),
															array('headline', 'oxactions2article', 1, 0, 0)
													)
							);

			unset($this->_aViewData['oxajax']['container2']);
			$tmp = array_merge_recursive($this->_aViewData['oxajax'], $aColumns);
			$this->_aViewData['oxajax'] = $tmp;
		}

		return $return;
	}
}

Standard modules engine does not work with AJAX/Datatables, so on this case you will have to copy original [U]admin/inc/actions_main.inc.php[/U] file and modify it according your needs. Additionally you will have to write a module for [U]admin/actions_main.php[/U] class, which includes your new AJAX/Datatable class. Old template should work.