Hey guys,
I am trying to use a custom layout for printing a new (or any) infolog form.
for instance, a info_type “new” has its template infolog.edit.new and its print template is infolog.edit.print.new
I changed the code in class.infolog_ui.inc.php as follows:
$GLOBALS[‘egw_info’][‘flags’][‘app_header’] = lang($this->messages[$info_id ? ‘edit’ : ($action == ‘sp’ ? ‘add_sub’ : ‘add’)]);
// use a typ-specific template (infolog.edit.xyz), if one exists, otherwise fall back to the generic one
if (!($this->tmpl->read($<b>print ? 'infolog.edit.print.'.$content['info_type'] : 'infolog.edit.'.$content['info_type']</b>)))
{
$this->tmpl->read($print ? 'infolog.edit.print':'infolog.edit');
</i>
Still when I do Action…->Print… the print form for “note” shows.
What am I doing wrong? Can any one help me ?
Thanks.