Ok...its sort of complicated and there are a lot of supporting files, but here are a few of them. You should be able to get the concept from these...
No, my wish is much simpler: I have this dtml-in: <dtml-in blabla sort=sortkey> <blabla> </dtml-in> I just want to reload the url with something like this: http://url/blabla?sortkey=title Is this so complicated? How can I bring a variable from the url to the dtml-in Tag?
Hi Stephan, In order to do this you need to provide the dtml-in statement with the whole of the parameters needed for your blabla method along with the sortkey parameter. Then you need to change your dtml-in statement from sort to sort_expr=sortkey. I did get this to work, but had to write my own parser for the QUERY_STRING to replace the sortkey value. If you want to know more then let me know hth Laurie -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Stephan Goeldi Sent: Tuesday, July 16, 2002 8:33 AM To: Schmidt, Allen J. Cc: zope@zope.org Subject: Re: [Zope] sorting a table
Ok...its sort of complicated and there are a lot of supporting files, but here are a few of them. You should be able to get the concept from these...
No, my wish is much simpler: I have this dtml-in: <dtml-in blabla sort=sortkey> <blabla> </dtml-in> I just want to reload the url with something like this: http://url/blabla?sortkey=title Is this so complicated? How can I bring a variable from the url to the dtml-in Tag? _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Tuesday 16 July 2002 09:33 am, Stephan Goeldi wrote:
Ok...its sort of complicated and there are a lot of supporting files, but here are a few of them. You should be able to get the concept from these...
No, my wish is much simpler:
I have this dtml-in:
<dtml-in blabla sort=sortkey> <blabla> </dtml-in>
I just want to reload the url with something like this:
http://url/blabla?sortkey=title
Is this so complicated? How can I bring a variable from the url to the dtml-in Tag?
try: <dtml-in blabla sort_expr="sortkey"> <blabla> </dtml-in> hth, -Casey
The solution was: <dtml-in blabla sort_expr="REQUEST.get('sortkey','title')"> where 'sortkey' is the value, provided in the url as e.g.: ....?sortkey=date and the ,'title' part is the default value. Thank you all Stephan
participants (3)
-
Casey Duncan -
Laurie Nason -
Stephan Goeldi