<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>From: Jonathan <dev101@...><br><br>>The script routine doesn't have to be located in root. traverse_subpath is <br>>populated using the names of all subfolders that occur after the script file name in <br>>the URL. So if your URL is: http:/my.web.site/folderA/scriptA/folderB/folderC, <br>>then scriptA will receive a traverse_subpath variable (in REQUEST namespace) <br>>that contains ['folderB', 'folderC']. Note: this will not work if there are any other >scripts, DMTL methods etc in the URL after 'scriptA'.<br><br>I figured out what I was doing wrong. Apparently, the script needs to be called *before* the folders. I had put it at the end. Okay, that works, so now how do I incorporate it? I'm running into trouble here. I've rewritten the following line several
times, and several times gotten it wrong. Perhaps you could steer me right?<br><br><div align="center" <br> tal:define="mycontext python:`here.traverse_subpath`"<br> tal:condition="here/hasSearchEngine(mycontext)"><br><br>TIA,<br>Javier<br></div></div><br>
<hr size=1>Any questions? Get answers on any topic at <a href="http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx">Yahoo! Answers</a>. Try it now.</body></html>