Attention

This document was written for an unsupported version of Plone, Plone 2.1.x, and was last updated 1240 days ago.

For more information, see the version support policy.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

Remove the URL's from printouts when printing a document with Mozilla/Firefox and Plone

by LiquidShaneo — last modified Dec 30, 2008 03:02 PM
This howto will explain how to turn off printing URL's in hardcopy (i.e. paper) printouts of content printed from a Plone site.

By default, when printing a document with either the Mozilla or Firefox browser, links within the content are expanded and printed in the article content in your printout. In order to remove this feature (site-wide!), drop into the ZMI and navigate to the /portal_skins/plone_styles folder and [Customize] plonePrint.css. Next, find the following line:

   #content a:link:after,
#content a:visited:after {
content: " [" attr(href) "] ";
}

Replace line #3 with the following:

    content: ""; 

Your code should now look like this:

    #content a:link:after,
#content a:visited:after {
content: "";
}

That's it. Pretty simple when you know where to look.


Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.