[Zope] DTML woes (again)

Matt Gregory matthew.gregory@skyleach.com
Tue, 9 Apr 2002 11:49:22 -0400


Well, if at first nobody answers your question answer it yourself.
> <dtml-var expr="_[includeDir][includeFile]">
needs to be
<dtml-var expr="_[includeDir][includeFile]()">

----- Original Message -----
From: "Matt Gregory" <matthew.gregory@skyleach.com>
To: "Zope" <zope@zope.org>
Sent: Tuesday, April 09, 2002 10:30 AM
Subject: [Zope] DTML woes (again)


> I have a namespace structure where I am trying to create a portlet
template.
> The namespace (described below) will contain many portlats with varying
> content but much of the same format.
>
> portlets
>   |_billingpayerinfo
>   |_aetna
>   |_insurance
>   |_anotherportlet
>
> In the portlets namespace, I have the following dtml method object:
>
> <dtml-let includeDir="'billingpayerinfo'" includeFile="'aetna'">
> <dtml-var expr="_[includeDir][includeFile]">
> </dtml-let>
>
> Where includeDir and includeFile are meant to be passed by any links
inside
> of any of the portlets.  For instance consider the following link:
> <a
>
href="/portlets/portlet_template?includeDir=billingpayerinfo&includeFile=aet
> na">Aetna</a>
> The problems abound, but at the moment it's formatting the html in Aeta
> instead of just returning it as html in the template.
>
> Any suggestions on how to fix that?
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>