[Zope] ZPT Print Theme

Dieter Maurer dieter@handshake.de
Tue, 24 Dec 2002 12:25:49 +0100


Mikhail wrote at 2002-12-23 18:37 +0300:
 > Zope.org site have a print version with light design. 
 > 
 > How I can make "print version" like on Zope.org for my site on ZPT if all 
 > my Page Tamplates use macros from 'main_template' Page Template. "Print" 
 > attribute will be getted from GET part of REQUEST:
 >   request.print == 'on'.
<tal:div define="
  print request/print | nothing;
  "
>
  .....
  <XXXX .... tal:condition="not: print">
    stuff you do not like for the printable version
  </XXXX>
  <XXXX .... tal:condition="print">
    stuff you do like only for the printable version
  </XXXX>
  .....
</tal:div>


Dieter