[Zope] Batch processing question

Michael michael@nichestaffing.com
Thu, 15 Aug 2002 13:35:13 -0600


> Michael wrote:

Thanks Maik, that worked great!  I was using <dtml-if previous-sequence> and 
<dtml-if next-sequence>, but never thought of <dtml-if 
'whichever'-sequence-start-number>.  Now it looks much more like a normal 
search results report.

Thanks again,

Michael


On Thursday 15 August 2002 01:10 am, Maik Jablonski wrote:
> > On a results report , is there a way to put the "[ Previous 20 Results ]"
> > and "[ Next 20 Results ]" both at the bottom of the page?  I've tried
> > different combinations all day and can't seem to get it to work.  I have
> > got it to where when you get to the last page, it will display the
> > previous results at the bottom, but that's it.
> >
> > Michael
>
> hi michael,
>
> simply use something like at the top of your dtml-in:
>
> *****************************************************
>
> <dtml-in ...>
>
>   <dtml-if sequence-start>
>
>    <dtml-if next-sequence-start-number>
>
>   [&nbsp;<a href="<dtml-var URL><dtml-var
> sequence-query>query_start=<dtml-var
> next-sequence-start-number>"><dtml-var next-sequence-size> NEXT
> PAGES</a>&nbsp;]
>
>    </dtml-if next-sequence-start-number>
>
>    <dtml-if previous-sequence-start-number>
> [&nbsp;<a href="<dtml-var URL><dtml-var
> sequence-query>query_start=<dtml-var
> previous-sequence-start-number>"><dtml-var previous-sequence-size>
> PREVIOUS PAGES</a>&nbsp;]
>    </dtml-if previous-sequence-start-number>
>
>   </dtml-if sequence-start>
>
>   Here goes your listing stuff
> </dtml-in>
>
> *****************************************************
>
> cheers, maik