[Zope] strange "in" behavior

Martijn Pieters mj@antraciet.nl
Tue, 05 Oct 1999 11:10:20 +0200


At 10:40 05/10/99 , CHUNG-SHU YANG wrote:
>Hi all,
>
>I have an "in" code fragment like this:
>
><!--#in result size=ROWS start=query_start-->
>....
><!--#/in-->
>
>Now "result" contains 6 rows:
>
>If ROWS >=4, I always get all 6 rows on a single page.
>If ROWS<=3, I get correct number of rows on the first page.
>However, suppose ROWS=2, I click "Next 2 results" and the second page gives
>me 4.
>
>Any idea?
>
>I'm using ZOPE2.0.1 and ZODBCDA3.1b2 on Win98
>
>TIA

Set the orphan to zero, like:

   <!--#in result size=ROWS start=query_start orphan=0-->
    ....
   <!--#/in-->

It defaults to 3. See the DTML Users guide:

   http://www.zope.org/Documentation/Guides/DTML/DTML-HTML/DTML.6.5.1.html

--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------