[Zope] User Specifies dtml template

Andy McKay andym@ActiveState.com
Wed, 7 Feb 2001 10:52:43 -0800


One simple way is to edit the source file for DTML Document, its hardcoded
in /lib/python/OFS/DTMLDocument.py...

default_dd_html="""<dtml-var standard_html_header>
<h2><dtml-var title_or_id></h2>
<p>
This is the <dtml-var id> Document.
</p>
<dtml-var standard_html_footer>"""

--
  Andy McKay.


----- Original Message -----
From: "Tom Freeman" <Tom.Freeman@niss.ac.uk>
To: <zope@zope.org>
Sent: Wednesday, February 07, 2001 7:00 AM
Subject: [Zope] User Specifies dtml template


> hi,
>
> How can I create a user defined dtml document?
> What I want to do is to have an option to create 'toms dtml document',
> this will contain:
>
> <dtml-var standard_html_header>
> <dtml-var header>
> <dtml-var header-about>
>
> <!-- Content starts here -->
>
> <!-- Content ends here -->
>
> <dtml-var footer>
> <dtml-var standard_html_footer>
>
> instead of the standard:
>
> <dtml-var standard_html_header>
> <h2><dtml-var title_or_id></h2>
> <p>
> This is the <dtml-var id> Document.
> </p>
> <dtml-var standard_html_footer>
>
> how can I do this? is this possible?
>
> thanks in advance for any feedback,
> cheers,
> Tom.
>
> --
> -----------------------------------------------------------------------
> Tom Freeman
> Industrial Placement
> NISS, Eduserv
> Tel: 01225 323789
> Fax: 01225 826177
> Web: http://www.niss.ac.uk
>
> _______________________________________________
> 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 )
>