[Zope] dtml-in with ZSQL batch processing (DTML-Error)
Thomas Weiner
weiner@tu-harburg.de
Fri, 26 Nov 1999 13:56:06 +0100
Ulrich Wisser schrieb:
>
> Hi,
>
> I want a table with the "nextBatch" link on top, like
>
> prevBatch nextBatch
> data
> data
> data
>
> I tried the following code:
>
> <dtml-in ZSQL start=qs size=5>
> <dtml-if sequence-start>
> <TABLE>
> <dtml-if prev-sequence>
> prevBatch
> </dtml-if>
> <dtml-if next-sequence>
> nextBatch <-- This will never be printed
> </dtml-if>
> </dtml-if>
> </dtml-in>
>
> Any hints
instead of <dtml-if next-sequence> try:
<dtml-if "_['sequence-index'] + _['sequence-step-size'] <
_['count-id']">
<a href="mksuche?query_start=<dtml-var
" _['sequence-index'] + _['sequence-step-size'] + 1"-->>
(Zu den nächsten Such-Ergebnissen)
</a>
</dtml-if-->
This seems to work.
hth,
Thomas
--
fon: ++49 (0)40 42878 3781
fax: ++49 (0)40 42878 2728