[Zope] - Is this a bug?
Butch Landingin
butchland@yahoo.com
Sun, 13 Dec 1998 16:24:10 -0800 (PST)
I've just started playing around with Zope and the Plutonia example so
I don't know enough to figure this one out:
I defined the standard_html_header as follows :
---start of standard_html_header--------
<HTML><HEAD>
<TITLE><!--#var document_title--></TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<P><!--#var PlutoniaLogo--></P>
---end of standard_html_header--------
and in each of the the folders News, Products and Research,
there an index_html (e.g. title : Plutonia News) with the following
text (or something like it) :
-----start of index_html---------
<!--#var standard_html_header-->
<H2> <!--#var document_title--></H2>
<P> Welcome to Plutonia News Section!</P>
<P> We don't have any news items to report yet though. </P>
<!--#var standard_html_footer-->
-----end of index_html---------
When the page is rendered, the document_title is displayed correctly
as <H2> Plutonia News </H2>.
However the standard_html_header template expansion has this quirky
behavior :
the PlutoniaLogo is translated correctly into PlutoniaLogo but the
document_title in between the <TITLE> tags is empty!
See the rendered HTML:
---start of rendered HTML --------
<HTML><HEAD>
<TITLE></TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<P><IMG SRC="PlutoniaLogo" ALT="PlutoniaLogo"></P>
<H2> Plutonia News</H2>
<P> Welcome to Plutonia News Section!</P>
<P> We don't have any news items to report yet though.</P>
</BODY></HTML>
---end of rendered HTML --------
Question: What's the difference in evaluating the document_title
inside standard_html_header and evaluating it inside index_html ? Is
there no dynamic or recursive expansion of variables at all? Is there
anything that I'm missing here? If there is no recursive expansion of
variables, is there anyway I can put a dynamically evaluated variable
in the standard_html_header so that it displays the correct title?
Other than this, I think Zope is pretty cool.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com