[Zope] <dtml-with> confusion
Chris Withers
chrisw@nipltd.com
Thu, 10 Aug 2000 09:45:54 +0100
"Dan L. Pierson" wrote:
> Now, when would this make a difference?
Dan,
You might remember the posts about this on squishdot@egroups.com...
> Brendon Grunewald wrote:
> > All I want to do is displya the list articles (titles) from the squishdot
> > site (/news) on the home page (/home) as well as a few other folders (e.g.
> > /wap)...
>
> This worked for me:
> <dtml-with "PARENTS[-1].squishdot">
> <dtml-if item_list>
> <dtml-in item_list>
> <li>
> <a href="<dtml-var absolute_url><dtml-var
> thread_path>/<dtml-var id>">
> <dtml-var title>
> </a>
> </li>
> </dtml-in>
> </dtml-if>
> </dtml-with>
Whereas this, IIRC, doesn't get hold of item_list, which is a method of
Squishdot objects:
> <dtml-with "PARENTS[-1]">
> <dtml-with "squishdot">
> <dtml-if item_list>
> <dtml-in item_list>
> <li>
> <a href="<dtml-var absolute_url><dtml-var
> thread_path>/<dtml-var id>">
> <dtml-var title>
> </a>
> </li>
> </dtml-in>
> </dtml-if>
> </dtml-with>
> </dtml-with>
Any ideas?
Chris