Adding a Print Button to Roundcube Toolbar

How to add a print button to the toolbar of the Roundcube webmail client. The following instructions are based on Roundcube version 0.5.1 with default skin, but likely apply to other versions as well.

To modify the toolbar and add a print button to the Roundcube toolbar, add the following to ../skins/default/mail.css:

#messagetoolbar a.print {
background-position: -226px 0;
}

#messagetoolbar a.printSel {
background-position: -32px 0;
}

Add the following to ../skins/default/templates/mail.html:

<roundcube:button command="print" type="link" class="buttonPas print" classAct="button print" classSel="button printSel" title="printmessage" content=" " />

In our installation, we added it immediately after the "more actions" icon, on the far right side of the toolbar:

<roundcube:button name="messagemenulink" id="messagemenulink" type="link" class="button messagemenu" title="messageactions" onclick="rcmail_ui.show_popup('messagemenu');return false" content=" " />
<roundcube:button command="print" type="link" class="buttonPas print" classAct="button print" classSel="button printSel" title="printmessage" content=" " />
</div>

Hope this helps!



 
Google Search