[Zope] Bag 'o newbie questions
Jaroslav Lukesh
lsh@wo.cz
Mon, 12 Aug 2002 15:56:33 +0200
Toto je vícedílná zpráva formátu MIME.
------=_NextPart_000_01C24218.D48C2D80
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: Quoted-Printable
| Odes=EDlatel: Dieter Maurer <dieter@handshake.de>
| Michael S. Fischer writes:
| > 1) We used PHP's "auto_prepend_file" and "auto_append_file" directiv=
es
| > to paste in a standard header and footer to every HTML document belo=
w
| > the root. Is there a facility by which we can do this in Zope witho=
ut
| > having each page explicitly call <dtml-var> to render the header and
| > footer?
| Your options (there may be more):
|=20
| * You present your objects through a specialized "view" method.
| It can add a header and footer as wanted.
|=20
| Drawback: your URL's must become "<path_to_your_object>/view".
|=20
see attachment, here you can find my early solution. Now are much improve=
d,
but at this barebone. If you have problems with unpackink, it was posted
here at 2002/07/16 by me (subj: Showing HTML files)
| * You use CMF, maybe in combination with your own product.
| Look at the "Document" class (for an example).
Try to use KUBE for Zope Templates, it is much easier.
=20
Regards JL.
------=_NextPart_000_01C24218.D48C2D80
Content-Type: application/octet-stream; name="zopeweb.gz"
Content-Description: zopeweb.gz (Aladdin StuffIt Archive)
Content-Disposition: attachment; filename="zopeweb.gz"
Content-Transfer-Encoding: Base64
H4sICOq8Vz0CAHpvcGV3ZWIAtVXbjts2EH2OAP3D1EBhL2xLu81LEcgGGuwCcZNsgmzQFigKgRbH
FltKVEjKXv19h6RsyRv0AmyrF/My13PO0Bso2QFhJyQaEDXslOSoDTADW2ZEAcbqtrCtRlA7sCXC
EbcJ3LGihArrFoTFCoSJI4MN08xiHyKBzW4ISBa04fiYlLZauDi1O9q1UnagkW40cmBS1RhHR2FL
1VpyVZZcWc2hROZjfqhBNY0ylBUKZtAH8bUPQQwY3FNt1iziSOOeaU4GlJ/qsc7hzef37yi4rpi1
5DA75cuoNrnOXK412gIs25srUBoePv8SR7MzEhwsPtor4KpoXZ4EHvqEwAgno7QLexAMSsq2ufUd
GEohO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