[Zope] How does Zope.org site implement "Printable Page" option

Geir B Hansen Geir B Hansen <geirh@funcom.com>
Fri, 25 Feb 2000 09:45:37 +0100


on Friday, February 25, 2000 Robert Geiger wrote :
RG> How does Zope.org site implement "Printable Page" option

RG> I see the pp=1 and presume this is some kind of var.
RG> I have reason to want to do this, and I kindof get the idea,
RG> but I would like to know how the pro's do it!!

RG> Thanks

RG> --
RG> Robert Geiger
RG> robert@geigers.net

I have no affiliation with zope.org, but i did implement a
printable page feature quite similar to the one you talk
about..

try something like this in your standard_html_header

[untested code]

<dtml-if pp>

<!--simple header with no stylesheets or navigation-->
<HTML>
<HEAD><TITLE><dtml-var title_or_id> - printable version</TITLE></HEAD>
<BODY>
<!--end simple header-->

<dtml-else>
.... your ordinary standard_html_header comes here...
</dtml-if>

If you use a lot of tables and nesting to create your
navigation, you might have to do something similar in the
footer too...

--
Geir B Hansen
web-developer/designer
geirh@funcom.com
http://www.funcom.com