[Zope] Re: Generic Content Object for use with Page Templates

Tim Hicks tim@sitefusion.co.uk
Wed, 21 Aug 2002 22:14:14 +0100


> Tim Hicks wrote:
> > Files - may be appropriate as they can just store text and can be edited
> > through the ZMI if less than 64KB I believe.  Still, if I want to have
the
> > index_html zpt present the contents, I'll have to have urls explicitly
of
> > the form file/index_html, otherwise I presume I'll just get a file
download
> > prompt from my browser.
>
> If you really want to work it this way, you can use a Folder containing
> a text/plain File.  For example, if you standardize on the name
> 'content.html' for the File object, your index_html ZPT can use:
>
> <div tal:replace="structure here/content.html">Content</div>
>
> This way, you still have a convient ZMI interface (especially with
> ExternalEditor!) for your content.

Nice idea, thanks.

But I get the feeling that it's not something you'd do yourself ("If you
really want to work it this way...") - why is that and do you have
alternative site structures?

cheers

tim