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
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]
Hello Eron, Tuesday, April 02, 2002, 19:36:31, you wrote: EL> You cannot use DTML within PageTemplates. I'm not sure how this is done with EL> ZPT, so someone else will have to elaborate. <div tal:replace="nothing"> All stuff inside this div will be removed upon rendering </div> -- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team
participants (3)
-
Dan Rusch -
Eron Lloyd -
Geir Bækholt