[Zope] dtml-var in URL

Jens Vagelpohl jens@zope.com
Mon, 30 Sep 2002 07:39:13 -0400


this is still not failsafe in case you ever decide to do other things 
with query strings. this is failsafe and will always work::

<dtml-if "REQUEST.get('print', '')">
   show print view
<dtml-else>
   show normal view
</dtml-if>

jens




On Monday, Sep 30, 2002, at 05:24 US/Eastern, Stephan Goeldi wrote:

> What works for me, instead of
>>> <dtml-if "print==yes">
>
> or
>>> <dtml-if "REQUEST.form['print']==yes">
>
> is:
>
> <dtml-unless "REQUEST.QUERY_STRING=='print'">
>
> When I send an URL with:
> www.site.com/someobject?print
>
> this works fine. I can now exclude browser-related html for 
> printversions
>
>
> _______________________________________________
> 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 )