[Zope-CMF] File_view page -- making download appear only when there's a file
Dieter Maurer
dieter@handshake.de
Fri, 5 Jul 2002 22:55:43 +0200
Yoni Hammer Kossoy writes:
> <dtml-with essay1>
> <dtml-if file>
> <a href="&dtml-absolute_url;"><b>View Essay 1</b></a>
> </dtml-if>
> </dtml-with>
>
> ...results in an excessive recursion error.
Your code seems innocious. But...
What type of object is "essay1".
As you use it, it may be rendered. And this may lead to
infinite recursion.
Maybe, you try '<dtml-with "essay1">' instead (to avoid
rendering).
Dieter