[Zope] printable page

Peter Borocz P.Borocz@fi.com
Wed, 29 Aug 2001 08:23:24 -0700


I also saw that on Zope pages and then spent way too much time trying =
to
find out how to do it from mailing lists etc. when I had the same =
epiphany
that you did that simply "stripping" the navigation out of the =
standalone
dtml-doc/methods would do it for my entire site.=20
Thus, here's the link that I cobbled together that's in my standard
html_footer (in this case, I use pp as the variable instead of =
printable as
I thought that "might" be the standard):=20

<a href=3D"&dtml-URL0;?&dtml-QUERY_STRING;&pp=3D1">
   <img src=3D"zImages/printable" border=3D"0" alt=3D"printer-friendly =
version">
</a>=20

I can't vouch for the "Zope" correctness of the URL variable though it =
seems
to work for me.
Cheers
Peter Borocz

 -----Original Message-----
From: 	Jan Ulrich Hasecke [mailto:janulrich.hasecke@web.de]=20
Sent:	Wednesday, August 29, 2001 7:03 AM
To:	zope@zope.org
Subject:	[Zope] printable page

Hi,

I saw that on zope.org you can get printable pages. How are they
generated?

I also want to integrate printable pages in my project. I want to do
this by changing the standard_html_header.

I would insert in standard_html_header something like this:

<dtml-if expr=3D"printable">
<html>
<head>
print-stylesheet
<body>

<dtml-else>
<html>
<head>
screen-stylesheet
<body>
...complex navigation=20

</dtml-if>

Similar in standard_html_footer.

What would be the right if-construction and how can I set the
condition "printable" dynamically from inside the given
DTMLDocument. The Document should have a button or link which sets the
condition printable while loading itself again.

TIA
juh
--=20
6 Millionen arme S=FCnderlein
http://www.sudelbuch.de/2000/20000807.html

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -=20
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




-------------------------------------------------
PLEASE READ THIS WARNING: All e-mail sent to or from this address will be
received or otherwise recorded by the Fisher Investments  corporate e-mail
system and is  subject to archival, monitoring or review by, and/or
disclosure to, someone other than the recipient.