[Zope] Automatically including another document
Seb Bacon
seb@jamkit.com
Fri, 21 Dec 2001 00:17:08 -0000
> Here's what I'm trying to do: in a subdirectory off the current
> one, called "book", there is a file with the same name as this one,
> and I want to include it in the current DTML document. Here's what
> I have so far:
>
> <dtml-with book>
> <dtml-let text="_['URL'].split('/')[-1]">
> <dtml-if text>
> <dtml-var text>
> </dtml-if>
> </dtml-let>
> </dtml-with>
You could do something like:
<dtml-with book>
<dtml-let "text=getId()">
<dtml-var "_.getitem(text,1)">
</dtml-let>
</dmtl-with>
seb