[Zope] Re: Prototype Help, Please

Maik Jablonski maik.jablonski@uni-bielefeld.de
Tue, 05 Nov 2002 16:44:41 +0100


yuba@cyberback.com wrote:
> I am trying to get the Prototype in the Zope Book working and run into the following problem when typing in the index_html file (Listing 4.1).  Here is the code
> - - - - - - - - - - - - - - - - - - - - - - - -
> <dtml-var standard_html_header>
>   <center> 
>     <dtml-if "AUTHENTICATED_USER.has_role('Anonymous')">
>       <h3>Welcome to your Message Board</h3><p>
>       Please identify!    <p>
>       <a href="login_html">Login</a>
>     </dtml-if>
> </center>
> <dtml-var standard_html_footer>
> - - - - - - - - - - - - - - - - - - - - - - - - 
> 
> and here is the error:
> 
> Compilation failed
> TAL.HTMLParser.HTMLParseError: malformed start tag, at line 3, column 14
> 
> I have looked and looked, but do not see what I've done wrong.  Can you help me, please?

I guess you've created a PageTemplate, but you have to use a DTML Method 
for this example.

cheers, maik
-- 
Maik Jablonski                 __o
www.zfl.uni-bielefeld.de     _ \<_    Deutsche Zope User Group
Bielefeld, Germany          (_)/(_)               www.dzug.org