[Zope] Zope not seeing my standard_html_header (was: Newbie list)

Simon Brunning SBrunning@trisystems.co.uk
Fri, 21 Sep 2001 13:39:07 +0100


> From:	Simon Brunning [SMTP:SBrunning@trisystems.co.uk]
> Is there a Zope-tutor list, like the Python-tutor list at
> <http://mail.python.org/mailman/listinfo/tutor>?
 
Hmmm. I gather not. I can't find one on the Zope resources page, and no one
has directed me to one. So I'll just ask my questions here, if that's OK.

I'm running Zope 2.4.1 as a service on NT4SP6, and using IR5.5 for my
browser.

I'm working through the example given in chapter 5 of 'The Zope Book'. I
have created 'zoo' folder, containing a 'navigation' DTML method containing
the following:

<ul>
<dtml-in expr="objectValues('Folder')">
    <li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a></li><br>
</dtml-in>
</ul>

Viewing this looks fine - I get a list of links to the subfolders within the
'zoo' folder.

I also have a standard_html_header DTML method, as follows.

<html>
<head><title><dtml-var title_or_id></title></head>
<body>
<dtml-var navigation>

Again, when I view this it all looks fine.

Lastly, I have an index_html DTML document as follows:

<dtml-var standard_html_header>

<h1>Welcome to the Zope Zoo</h1>
<p>Here you will find all kinds of cool animals.  You are in the
<b><dtml-var getId></b> section.</p>

<dtml-var standard_html_footer>

Viewing this, I have two problems. Firstly, the <dtml-var getId> is rendered
as 'index_html', whereas I was expecting to see 'zoo', the name of the
folder. Secondly, the navigation stuff from the standard_html_header is
missing altogether.

Any ideas?

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning@trisystems.co.uk





-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.