[Zope] Please help, 3rd post with no luck.
Martijn Pieters
mj@antraciet.nl
Fri, 21 May 1999 17:32:17 +0200
At 17:13 21/05/99 , Chad M. Townsend wrote:
>http://www.domain.com/us/states/fl/cities/miami/weaher.html
>
>us = folder
>states = Z SQL Method
>fl = arg to states
>cities = Z SQL Method
>miami = arg to cities
>weather = DTML Document
>
>I am trying to access what state and city where chosen in the weather
>document. Is there another way to do this? I'm trying to avoid making
>53,000 folders. Someone please point me in the right direction.
You could try to use _.string.split on URL1, the variable that probably reads:
>http://www.domain.com/us/states/fl/cities/miami
untested:
(_.string.split(URL1, '/'))[-1] should contain 'miami'
(_.string.split(URL1, '/'))[-3] should contain 'fl'
--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-6254545 Fax: +31-35-6254555
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------