A great learning tool I found was to just use the Z Search Method and choose to generate the page as ZPT instead of DTML. We are still 100% DTML in our shop so am no expert....but when I found this it did clarify a few things. HTH Allen ----- Original Message ----- From: "dean hale" <dean.hale@sunderland.ac.uk> To: <zope@zope.org> Sent: Wednesday, July 23, 2003 11:18 AM Subject: [Zope] dtml to tal - advice
Hi
Anyone any ideas,
I have this in dtml (it uses other bits to query an sql d/b to return weblinks, does anyone know how to render it in ZPT. I cannot for the life of me figure it out.
I may then be able to guess how to do the rest.
Hope it's clear.
---find_a_link_search----
<dtml-if "REQUEST.has_key('search_string')"> <dtml-call "REQUEST.set('s',search_string)"> </dtml-if>
<dtml-in expr="is_proxy.callRemoteMethod('weblinks_py',s)">
<dtml-if sequence-start> <table border="0" width="100%" align="center"> <tr> <td align="center"> Find a Weblink search results - <dtml-var sequence-length> matching titles found </td> </tr> <tr><td> </td></tr> </table> </dtml-if sequence-start>
<dtml-var sequence-item>
<dtml-else> <table border="0" width="100%"align="center"> <tr> <td align="center" bgcolor="#CCCCCC"> Find a Weblink search results </td> </tr>
<tr><td> </td></tr> <tr><td align="center">Sorry, no matching Weblinks were found.</td></tr> <tr><td align="center">Try Again?</td></tr> </table> </dtml-in>
Thanks very much dean
--
Dean Hale Information Services
Web Development Manager 0191 515 2424
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )