[Zope] ZPT Print Theme
pskipworth@touchcorp.com
pskipworth@touchcorp.com
Tue, 24 Dec 2002 10:02:29 +1100
Here's how I do it...
Here's the first line of my index_html...
<html metal:use-macro="here/getTemplate">
'getTemplate' is a python-script, consisting of...
request = container.REQUEST
if request.has_key('pp'):
return context.standard_print_template.macros['master']
else:
return context.standard_template.macros['master']
Hope this helps!
P
-----Original Message-----
From: xen_ua@mail.ru [mailto:xen_ua@mail.ru]
Sent: Tuesday, 24 December 2002 2:38 AM
To: zope@zope.org
Subject: [Zope] ZPT Print Theme
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'.
--
Mikhail 'Xen' Kashkin
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )