<div>I tried using orig_title in the format &lt;dtml-var orig_title&gt;&nbsp;in the called dtml-method (category_results) and I get a zope error which I don't understand:</div>
<div><strong>Error Type: TypeError<br>Error Value: sequence index must be integer</strong><br>&nbsp;</div>
<div>When I call it in the orignal page which I want the title for it works fine.&nbsp; </div>
<div>&nbsp;</div>
<div>John Eikenberry jae-zope at <a href="http://kavi.com">kavi.com</a> <br>Mon Aug 29 16:05:37 EDT 2005 </div>
<p>
<ul>
<li>Previous message: <a href="http://mail.zope.org/pipermail/zope/2005-August/161244.html">[Zope] passing a parameter - namespace and dtml-with </a>
<li>Next message: <a href="http://mail.zope.org/pipermail/zope/2005-August/161248.html">[Zope] zope 2.8 command line tracebacks </a>
<li><b>Messages sorted by:</b> <a href="http://mail.zope.org/pipermail/zope/2005-August/date.html#161245">[ date ]</a> <a href="http://mail.zope.org/pipermail/zope/2005-August/thread.html#161245">[ thread ]</a> <a href="http://mail.zope.org/pipermail/zope/2005-August/subject.html#161245">
[ subject ]</a> <a href="http://mail.zope.org/pipermail/zope/2005-August/author.html#161245">[ author ]</a> </li></li></li></ul>
<hr>
<pre>Sean Kelley wrote:

&gt;<i> I am trying to pass the title of a page to a dtml method which is in another 
</i>&gt;<i> folder named links. If I pass the actual title like below everything works. 
</i>&gt;<i> However, when I try to pass the value of the current title to 
</i>&gt;<i> category_results using various other methods it does not.
</i>&gt;<i> What is the syntax so that I can pass the current value of &lt;dtml-var title&gt; 
</i>&gt;<i> to the method? Would the dtml-with block change the namespace it pulls the 
</i>&gt;<i> title variable from to the context of the method category_results in the 
</i>&gt;<i> links folder?
</i>
Yes.

Here's a quick hack that will work.

&lt;dtml-call &quot;REQUEST.set('orig_title',this().title)&quot;&gt;
&lt;dtml-with links&gt;
&lt;dtml-var &quot;catagory_results(_.None,REQUEST.get('orig_title'))&quot;&gt;
&lt;/dtml-with&gt;

&gt;<i>  &lt;dtml-with links&gt;
</i>&gt;<i> &lt;dtml-comment&gt;This line works&lt;/dtml-comment&gt;
</i>&gt;<i> &lt;dtml-var &quot;category_results(_.None, _, title1='Hannoverian Stallions Lauries 
</i>&gt;<i> Crusador ')&quot;&gt;
</i>&gt;<i> &lt;/dtml-with&gt;
</i></pre></p>