[Zope] previous-sequence attribute does not work

Stephan Richter SRichter@ixl.com
Sun, 22 Aug 1999 22:08:14 -0500


hi,

I have the following problem on my Zope Portal site:
I wrote the following code:
<dtml-with zdpNews>
  <ul>
  <dtml-in "objectValues('News Item')" sort=date reverse start=qs size=5 orphan=2>
       <li><a href="zdpNews/<dtml-var id>"><i><dtml-var "date" fmt="%m/%d/%Y"></i></a>
          - <dtml-var "title"></li>
      <dtml-if sequence-end>
       </ul> 
      <dtml-if previous-sequence>
         <a href="<dtml-var document_id><dtml-var sequence-query>qs=<dtml-var previous-sequence-start-number>">&lt;--Newer</a>
      </dtml-if>
      <dtml-if next-sequence>
        <a href="<dtml-var document_id><dtml-var sequence-query>qs=<dtml-var next-sequence-start-number>">Older--&gt;</a>
      </dtml-if>
    </dtml-if>
  </dtml-in>
</dtml-with>
It will create the first site, and when I click on "Older-->" it will go to the
next news group., but it will not display the "<--Newer" link. Basically it
does not pass the previous-sequence if-test. What is worng? Is it a bug?
You can see the problem at: http://www.zope.org:18200/Members/srichter

Another weired thing. If I change the size to 4 and the orphan to 1, the
"Older-->" link will be broken. It says that slice needs to be an integer. Does
anyone has a clue what this could mean?

regards,
stephan
--
Stephan Richter
iXL - Software Designer and Engineer