[Zope] DTML to ZPT: insert db info and variables help
Max M
maxm@mxm.dk
Tue, 25 Feb 2003 08:40:41 +0100
Wayne Connolly wrote:
>Hi,
>Can someone please help me to convert the dtml into
>zpt. below i am adding a db item onto the end of a
>url. maybe there is a URL example but i couldnt find
>one that worked.
>
I hope this helps
><a href=update?item=<dtml-var product>>Edit <dtml-var
>product></a>
>
>
<a href="#" tal:attributes="href string:update?item=${here/product}"
tal:content="string:Edit ${here/product}">Edit</a>
>Also placing db info into input fields.. i cant get
>head around tales...
>
><dtml-in zSQLMethod>
><form method="post" action="update_files"
> enctype="multipart/form-data">
>
>
><input type="hidden" name=product_title
>value="<dtml-var product_title null="">"
></form>
><dtml-in>
>
>
<form method="post" action="update_files" enctype="multipart/form-data"
tal:repeat="item here/zSQLMethod">
<input type="hidden" name=product_title
tal:attributes="value here/product_title">
</form>
regards Max M