[Zope] FW: getPreviousSibling

RC Compaan sparroy@adept.co.za
Sun, 20 Feb 2000 10:50:38 +0200


I still haven't found a solution for the following problem.  Help would be
greatly appreciated:

-----Original Message-----
From: RC Compaan [mailto:roche@up-front.co.za]
Sent: 17 February 2000 01:57
To: Zope
Subject: getPreviousSibling


I have a list of folders containing thumbnail images.
In each folder I make a link to the previous and next folder with
"getPreviousSibling" and "getNextSibling".  This works perfectly in all
folders except for the first one.

This is my code:
<dtml-if getPreviousSibling>
  <dtml-with getPreviousSibling>
    <a href="<dtml-var absolute_url>"><<  <dtml-var title_or_id></a>
  </dtml-with>
</dtml-if>

And Zope says:
Error Type: SystemError
Error Value: infinite recursion in document template

My logic says <dtml-if getPreviousSibling> should return "none" for the
first folder like <dtml-if getNextSibling> returns none for the last folder
in the list.

What could it be?

roché