[Zope] standard_html_header difficulties - a dead-end ?

Darcy Clark darcyc@engin.umich.edu
Mon, 06 Dec 1999 15:03:39 -0500


Janko,

thanks for explaining this....it works for me also. Although I must
admit that I am still suprised that I cannot get this to work somehow if
index_html is a method. The reason I am trying to use methods is that in
my standard_html_header I am also using the <!--#tree--> tag - this tag
only seems to work properly if index_html is a method. I guess I still
don't appreciate the finer points of methods/documents and acquisition.

cheers,

Darcy

Janko Hauser wrote:
> 
> This is working here.
> 
> In folder DEMO
> 
>   DTML-method standard_head
>      with
>      <HTML>
>          <HEAD>
>             <TITLE><!--#var title_or_id--></TITLE>
>          </HEAD>
>          <BODY BGCOLOR="#FFFFFF">
> 
>   Folder MYFOLDER
> 
>       DTML-Document index_html (title -> 'a simple start')
>         with
>          <!--#var standard_header-->
>          <h2><!--#var title_or_id--></h2>
>          <p>
>          This is the <!--#var id--> Document.
>          <dtml-var document_title>
>          </p>
>          <!--#var standard_html_footer-->
> 
> This renders to: (Sorry I have no public site)
> 
> <HTML><HEAD><TITLE>a simple start</TITLE></HEAD><BODY BGCOLOR="#FFFFFF">
> 
> <h2>a simple start</h2>
> <p>
> This is the index_html Document. a simple start
> </p>
> <p><a href="http://www.zope.org/Credits">
>     <img src="http://lisboa.ifm.uni-kiel.de:9080/p_/ZopeButton"
>        width="115" height="50" border="0" alt="Powered by Zope"></a>
> </p>
> </BODY></HTML>
> 
> Is this what you want? Important is the difference between DTML-Method
> and DTML-Document
> 
> __Janko

-- 
---------------------------------------------------
Ph: (734) 764 3377 
Email: darcyc@engin.umich.edu
URL: http://www-personal.engin.umich.edu/~darcyc/
---------------------------------------------------
'If you're not part of the solution, you're part of the precipitate'
..... Steven Wright