AW: [opencms-dev] Problems with Printer friendly version in the onlineproject

Ulrich Rueth lists at rueth.info
Wed Feb 9 22:24:08 CET 2005


You need to include the full link including the parameters into the cms.link
method:

<a  HREF="<%=cms.link(uri+"?printversion=true")%>" target="_blank">print</A>

Regards
Ulrich

-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Thomas Schrein
Gesendet: Mittwoch, 9. Februar 2005 18:29
An: opencms-dev at opencms.org
Betreff: [opencms-dev] Problems with Printer friendly version in the
onlineproject


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



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list