Hi, Am Donnerstag, 7. Juni 2001 02:49 schrieb Chris Ryland:
I've been using Zope for a couple of weeks now fairly intensely, and learning fast. But then I run into the most obvious question in the world, and I'm stumped (perhaps it's too obvious). I've scoured the documentation, but I can't find it. So here goes.
How does a dtml document refer to the URL parameters passed to it?
E.g., I have a top-level index_html dtml method containing:
<dtml-var standard_html_header> <dtml-var content fmt=structured-text> <dtml-var standard_html_footer>
and a dtml document 'content' at each level in my tree with stx. So far, so good.
But now I want to pass two parameters to one of these 'content' document, as in
Try: <dtml-var standard_html_header> <dtml-var "content(parameter1=value1,parameter2=value2)" fmt=structured-text> <dtml-var standard_html_footer> or try: <dtml-var standard_html_header> <dtml-call "REQUEST.set('parameter1','value1')"> <dtml-call "REQUEST.set('parameter2','value2')"> <dtml-var content fmt=structured-text> <dtml-var standard_html_footer> in both cases mark the different quotation marks ... - Holger
http://localhost:8080/about/news?product=Xdata?newstype=review
I can't for the life of me figure out how to get those two parameters. They don't seem to be in the context, and they're only in the REQUEST in the raw parameter string (which I guess I could parse).
Is it because this is a non-forms document that I don't get the parameters? -- Cheers! Chris Ryland Em Software, Inc. www.emsoftware.com
_______________________________________________ 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 )
-- ----------------------------------- catWorkX GmbH Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel: +49 (0700) catWorkX Tel: +49 (40) 890 646-0 Fax: +49 (40) 890 646-66 mailto:lehmann@catworkx.de http://www.catworkx.de http://www.catbridge.de