<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 &lt;dev101@...&gt;<br><br>&gt;The script routine doesn't have to be located in root.&nbsp; traverse_subpath is <br>&gt;populated using the names of all subfolders that occur after the script file name in <br>&gt;the URL.&nbsp; So if your URL is:&nbsp; http:/my.web.site/folderA/scriptA/folderB/folderC, <br>&gt;then scriptA will receive a traverse_subpath variable (in REQUEST namespace) <br>&gt;that contains ['folderB', 'folderC'].&nbsp; Note: this will not work if there are any other &gt;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>&lt;div align="center" <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tal:define="mycontext python:`here.traverse_subpath`"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tal:condition="here/hasSearchEngine(mycontext)"&gt;<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>