[Zope] dtml-comment?

Eron Lloyd lloyd@lancaster.lib.pa.us
Tue, 2 Apr 2002 12:36:31 -0500


You cannot use DTML within PageTemplates. I'm not sure how this is done with 
ZPT, so someone else will have to elaborate.

Regards,

Eron

On Tuesday 02 April 2002 12:16 pm, Dan Rusch wrote:
> I have been away from Zope for about a year or so.  I used to be able to
> comment out blocks of code with:
>
>  <dtml-comment> code to commented out </dtml-comment>
>
> this doesn't work in the code below?
>
> <dtml-comment>
>     <h2>Sibling Links</h2>
>
>
>     <div tal:define="siblings here/siblings.py">
>     <ul tal:condition="siblings">
>       <li tal:repeat="folder siblings">
>         <a href="folder"
>            tal:attributes="href folder/absolute_url"
>            tal:content="folder/getId">folder id</a>
>       </li>
>     </ul>
>     <p tal:condition="not:siblings"><b>There are no courses scheduled at
> this time.</b></p>
>     </div>
> </dtml-comment>
>
>
> The code between the comment open and end tags is still displayed, what am
> I doing wrong?
>
>
> Zope Version (Zope 2.5.0 (binary release, python 2.1, linux2-x86), python
> 2.1.2, linux2)
> Python Version 2.1.2 (#1, Jan 25 2002, 13:17:56) [GCC 2.7.2.3]
> System Platform linux2
>
>
> Thanks,
>
> DR
>
> _______________________________________________
> 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 )
> ---
> [This E-mail scanned for viruses by Declude Virus]