[Zope-CMF] File_view page -- making download appear only when there's a file

Yoni Hammer Kossoy yonih@mandelschool.org.il
Thu, 4 Jul 2002 12:59:10 +0200


Hi all,

I'm trying to figure out how to customize the file_view page so that the
link to download a file only appears in the body of the page if a file
has actually been attached (a reasonable change, no?).

My newbie efforts of:

<dtml-with essay1>
  <dtml-if file>
     <a href=3D"&dtml-absolute_url;"><b>View Essay 1</b></a>
  </dtml-if>
</dtml-with>

...results in an excessive recursion error.

Any assistance with doing this the correct way would be most
appreciated.


Thanks in advance,

Yoni Hammer-Kossoy