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

Ulrich Rueth lists at rueth.info
Wed Feb 9 23:19:04 CET 2005


Hi Thomas,

my solution is rather simple. I actively create a sibling (internal link) in
a defined directory, and only if this sibling is there, the article jsp
creates a "printer friendly page" link. I've described this here:

http://www.rueth.info/articlemanagement-documentation/opencms6/article_0002.
html#section4

Maybe I can have a closer look at your original problem tomorrow, but now I
need to go to bed...

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 22:55
An: The OpenCms mailing list
Betreff: Re: AW: [opencms-dev] Problems with Printer friendly version in
theonlineproject


Hi Ulrich,
thank you for the hint, but that does not fix my bug. The url with the
parameter
"?printversion=true" can be seen in the browsers address field. Also without
your
modification.

The problem seems to be that the "request.getParameter("printversion")"
statement
does not find this parameter, but only in the online version. Offline is
fine.

Can I tune something in the OC config files, so OC will work online like
offline ?

As I have seen, your article management system provides a different solution
for
printer friendly; a second file for each object is produced (by what).
Can this solution be exported ?
How does it work ?
Can it be easy adopted for my problem ?
Any hint/link where I can find more info ?

Thanks
Thomas

Ulrich Rueth (lists at rueth.info) wrote:
>
>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
>
>
>
>_______________________________________________
>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
>
>
>



_______________________________________________
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