[Zope] Dynamic ordering of DTML-IN?

Andy Gates Andy.Gates@bristol.ac.uk
Tue, 23 Jan 2001 13:14:44 +0000


Message-ID: <EXECMAIL.1010123131444.B@kosh.bris.ac.uk>
Priority: NORMAL
X-Mailer: Execmail for Win32 5.1 Build (9) 
MIME-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"

> You can use something like:
> 
> <dtml-if "orderby=='firstname'">
> 	<dtml-in "sql_search(search='foo')" sort=firstname>
> <dtml-elif "orderby=='lastname'">
> 	<dtml-in "sql_search(search='foo')" sort=lastname>
> </dtml-if>

Hmm, that chokes, becuase it thinks the </dtml-if> tag is inside the 
<dtml-in> I think.

	AndyG