[Zope] Variable sort in dtml-in
Bill Anderson
bill@libc.org
Thu, 13 Jul 2000 19:02:06 -0600
Aaron Williamson wrote:
>
> In my search form, I have a selection box "in_sort_by" whose value can
> be "Category", "Field", or "Title". I am trying to make dtml-in sort by
> this value. I am using:
>
> <dtml-in SQL_search sort="_['in_sort_by']" size=list_size
> start=query_start>
>
> And I've tried other variations, but I always get an attribute error.
> The strange thing to me is that list_size is also a variable and it
> works fine, but I've tried just using in_sort_by and that doesn't work.
> What am I missing here?
http://www.zope.org/Documentation/How-To/index_html/view_source
should give you some ideas...
--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.