[Zope] mapping spaces to %20
Ryan M. Dolensek
rdolense@globalcrossing.com
Tue, 06 Feb 2001 16:47:07 -0600
--------------A6379AF5913CAED0DF30F03E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I would try...
<dtml-var web_title url_quote>
url_quote should handle escaping the string for you.
Hope that helps.
Ryan
Ben Edwards wrote:
> I am rewriting a website, it used matts free e-commerce to do the cart
> stuff. when I click on my 'buy now' link the following appears in the URL
> fields of the browser:
>
> http://www.aitsafe.com/cf/add.cfm?userid=3594172&product=Capital%20ills,%20D
> K%20in%20DC&price=5&units=1&return=www.videonetwork.org/cd/catalogue.html
>
> Zope generates
>
> http://www.aitsafe.com/cf/add.cfm?userid=3594172&product=Capital ills, DK
> in DC&price=5&units=1&return=www.videonetwork.org/cd/catalogue.html
>
> To set zope to generate the same stuff I think I need a function but not
> sure how to implement.
>
> Got as far as
>
> <dtml-let web_title="replace(title, ' ', '%20')">
> <dtml-var web_title>
> </dtml-let>
>
> But it is not quite correct, any ideas?
>
> ben
> *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
> * Ben Edwards lostit@videonetwork.org +44 (0)7970 269 522 *
> * Campaign Against proper English, Dyslexia division *
> * Homepage http://www.gifford.co.uk/~bedwards *
> * i-Contact Progressive Video http://www.videonetwork.org *
> * Smashing the Corporate image http://www.subvertise.org *
> * Bristol's radical news http://www.bristle.co.uk *
> * Open Directory Project http://www.dmoz.org *
> *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
>
> _______________________________________________
> 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 )
--
Ryan Dolensek
Software Engineer
Global Crossing
(920)405-4812
rdolense@globalcrossing.com
--------------A6379AF5913CAED0DF30F03E
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I would try...
<p><dtml-var web_title url_quote>
<p>url_quote should handle escaping the string for you.
<p>Hope that helps.
<p>Ryan
<p>Ben Edwards wrote:
<blockquote TYPE=CITE>I am rewriting a website, it used matts free e-commerce
to do the cart
<br>stuff. when I click on my 'buy now' link the following appears
in the URL
<br>fields of the browser:
<p><a href="http://www.aitsafe.com/cf/add.cfm?userid=3594172&product=Capital%20ills,%20D">http://www.aitsafe.com/cf/add.cfm?userid=3594172&product=Capital%20ills,%20D</a>
<br>K%20in%20DC&price=5&units=1&return=www.videonetwork.org/cd/catalogue.html
<p>Zope generates
<p><a href="http://www.aitsafe.com/cf/add.cfm?userid=3594172&product=Capital">http://www.aitsafe.com/cf/add.cfm?userid=3594172&product=Capital</a>
ills, DK
<br>in DC&price=5&units=1&return=www.videonetwork.org/cd/catalogue.html
<p>To set zope to generate the same stuff I think I need a function but
not
<br>sure how to implement.
<p>Got as far as
<p><dtml-let web_title="replace(title, ' ', '%20')">
<br><dtml-var web_title>
<br></dtml-let>
<p>But it is not quite correct, any ideas?
<p>ben
<br>*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
<br>* Ben Edwards lostit@videonetwork.org +44 (0)7970
269 522 *
<br>* Campaign Against proper English, Dyslexia division
*
<br>* Homepage
<a href="http://www.gifford.co.uk/~bedwards">http://www.gifford.co.uk/~bedwards</a>
*
<br>* i-Contact Progressive Video <a href="http://www.videonetwork.org">http://www.videonetwork.org</a>
*
<br>* Smashing the Corporate image <a href="http://www.subvertise.org">http://www.subvertise.org</a>
*
<br>* Bristol's radical news
<a href="http://www.bristle.co.uk">http://www.bristle.co.uk</a> *
<br>* Open Directory Project
<a href="http://www.dmoz.org">http://www.dmoz.org</a> *
<br>*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
<p>_______________________________________________
<br>Zope maillist - Zope@zope.org
<br><a href="http://lists.zope.org/mailman/listinfo/zope">http://lists.zope.org/mailman/listinfo/zope</a>
<br>** No cross posts or HTML encoding! **
<br>(Related lists -
<br> <a href="http://lists.zope.org/mailman/listinfo/zope-announce">http://lists.zope.org/mailman/listinfo/zope-announce</a>
<br> <a href="http://lists.zope.org/mailman/listinfo/zope-dev">http://lists.zope.org/mailman/listinfo/zope-dev</a>
)</blockquote>
<p>--
<br>Ryan Dolensek
<br>Software Engineer
<br>Global Crossing
<br>(920)405-4812
<br>rdolense@globalcrossing.com
<br> </html>
--------------A6379AF5913CAED0DF30F03E--