Please help, 3rd post with no luck.
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. Thanks, -chad
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:
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 ------------------------------------------
Thanks! That's exactly what I was looking for. -chad Martijn Pieters wrote:
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:
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 ------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
Is this what I'm looking for? http://www.zope.org/Documentation/Guides/DTML/DTML-HTML/DTML.html#pgfId-5086... "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.
Thanks,
-chad
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
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.
Thanks,
-chad
Assuming you *can* have a URL which allows two direct traversals... Top of my head.... Rip the URL to bits using 'string.split' <!--#in expr="_.string.split(dummyurl,'/')"--> <!--#var sequence-item--><br> <!--#/in --> and work on it that way perhaps? if dummyurl = http://www.domain.com/us/states/fl/cities/miami/weaher.html you get... http: www.domain.com us states fl cities miami weaher.html (the second line is blank) hth ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
participants (3)
-
Chad M. Townsend -
Martijn Pieters -
Tony McDonald