Hi!
I want to add a link to the taskbar that opens a help file in a new window. I create the link with the following code:
$this->api->add_content(html::tag('a', array(
'id'=>'helpbutton',
'href'=>$pdf_path,
'target'=>'_blank',
'class'=>'button help',
'title'=>$this->gettext('buttontitle')),
$this->gettext('buttontitle')), 'taskbar');
The button comes out ok, but somehow it breaks the mail window so that no emails are shown.
If I encase the button in the following if-clause the email window works:
if ($rcmail->action == '' || $rcmail->action == 'show') {}
But then the help-button doesn't show up when composing new messages or when viewing settings in profile and folder tabs.
Could you please give some advice about how this should be done in a better way!
Thanks in advance!