building a href in zpt
Kenneth Gonsalves <[email protected]> Fri, 17 Jun 2005 12:05:44 +0530
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
hi,
i have a postgres table like so:
id integer
name varchar
i want to list the contents of the table and build an href like this:
<a href="foo.bar.com/edit?id=someid">name</a>
my zpt code so far is:
<a tal:attributes="href string:${portal_url}/editdemo?="
tal:content="result/name">name</a>
but i cant figure out how to insert the tal:contern="result/id" after
the '?='
any clues?
--
regards
kg
http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!