[Zope] dtml to tal - advice

dean hale dean.hale@sunderland.ac.uk
Wed, 23 Jul 2003 16:18:34 +0100


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>&nbsp;</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>&nbsp;</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