[opencms-dev] Problems with Printer friendly version in the online project

Thomas Schrein tsx37 at schrein.com
Wed Feb 9 18:28:59 CET 2005


Hi list,

I have written a printer friendly version for of my jsptemplate, that works fine
in the offline project, but not after publishing.

In the template I create a link that points to the current url (to itself) with an
additional parameter to select the printer version:
  <a  HREF="<%=cms.link(uri)%>?printversion=true" target="_blank">print</A>

In the jsp-template that is used the statement

  if (request.getParameter("printversion")==null)
    priver = false;

searches for the parameter "printversion" and depending of its value the rest of
the template is controlled.

Everthing works in offline but not in online. In online the parameter ist not
transfered with the URL.

I know there may be difficulties publishing a project with such condtions, but is
there a work arround ?

I've set the property "export" in the parent folder of the project to false. I use
OC 5.0 with Linux. The property/config files of the installation are in default
state (I didn't touched them).

Any suggenstions how to runup this template ?

Or is there a better way to provide printer friendly pages ? I've read somthing in
the mailinglist, but did not find all the info I need.

Thanx for your hints in advance
Thomas Schrein




More information about the opencms-dev mailing list