[Zope] How to get rid of header and footer information?

Lorenz Lorenz-Meyer Lorenz Lorenz-Meyer <lorenz@clubvolt.de>
Fri, 31 May 2002 17:26:40 +0200


Hi,

I ran into the following problem with Zope:

If you create a Zope document you will probably include
something like <dtml-var standard_whatever_header> and
<dtml-var standard_whatever_footer> into the main text
area, thereby giving layout information for the default
rendering of the item. Problem is, when you try to
access the main content of the document, say, for
non-default purposes like a text-only version or
inclusion into some digest, you always get this default
layout information too - if you want it or not.

So I have two related questions:

1. Is it possible to reference the main content area of
a document EXCLUDING the header and footer information,
just like a 'clean' property field?

2. Is there a better way than including Headers and
Footers, maybe by relating a document somehow with
different separate 'template'-like dtml-methods for
default and non-standard ways of rendering the
document?

Sorry, if this is a stupid newbie question, and thanks in
advance,

Lorenz.

________________________________________________________

Dr. Lorenz Lorenz-Meyer                    Holstenring 2
                                           22763 Hamburg

E-Mail: lorenz@clubvolt.de         Tel: +49 40 5259 5551
AIM:    lorenzlm                Mobil:  +49 179 139 5819
________________________________________________________