[Zope] Wrapping pre-existing content

Phil Harris phil.harris@zope.co.uk
Thu, 8 Mar 2001 12:11:42 -0000


Mario,

If only things were that simple.

The hierarchy is deep, wide and heavily populated at each node.  The number
of folders is out of my control, as is the number of 'documents' in each
folder, as is the type of documents.

I need a selective way of wrapping as well as all-encompassing way, e.g. I
don't want to wrap Image or other binary types.

Thanks for the suggestion but in this case it's a no-go.

Phil
phil.harris@zweb.co.uk
----- Original Message -----
From: "Mario Valente" <mvalente@ruido-visual.pt>
To: "Phil Harris" <phil.harris@zope.co.uk>; <zope@zope.org>
Sent: Thursday, March 08, 2001 12:00 PM
Subject: Re: [Zope] Wrapping pre-existing content


> At 10:52 3/8/01 -0000, Phil Harris wrote:
> >I have a hierarchy of 'documents', lots of them circa. 300 and the number
> >will continue to grow (dramatically).
> >
> >These 'documents' could be of any type, XML/HTML/Images etc.
> >
> >What I want to do is to have some way of wrapping these documents to
include
> >a header and footer, but I want to do this at render time not before.
> >
> >
> >Any ideas?
> >
>
>   Lets say your pre-existing content is at folder 'documents' in several
>  subfolders ( /documents/a, /documents/b, etc).
>
>   Rename each pre-existing document to something like 'render' or
>  'content' or 'inside' or 'center' or whatever you want.
>
>   Put a single index_html file at the Zope root. This should contain your
>  standard layout (header, footer, sidebars, etc)
>
>   Now, assuming you put each doc into its own /document subfolder
>  and renamed it 'content', simply edit index_html (at the root) and
>  introduce a <dtml-var content> call where the content should appear.
>
>   Through the wonders of acquisition you should be able do request
>  /document/a , /document/b , etc. and see your documents enclosed
>  within your layout. You can still get to your documents (without layout)
>  by goint to /document/a/content.
>
>
>   C U!
>
>   -- Mario Valente
>
>
>
>
>
>
>