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
Hello Michael, Thursday, August 15, 2002, 10:15:30 AM, you wrote: M> On a results report , is there a way to put the "[ Previous 20 Results ]" and M> "[ Next 20 Results ]" both at the bottom of the page? I've tried different M> combinations all day and can't seem to get it to work. I have got it to M> where when you get to the last page, it will display the previous results at M> the bottom, but that's it. Try to use GET form method unless POST to save params for SQL-method on any page and add query_start param to them. -- Best regards, www.uralfirm.ru Dmitry Matveev mailto:matveev@uralfirm.ru
Michael 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> [ <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> ] </dtml-if next-sequence-start-number> <dtml-if previous-sequence-start-number> [ <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> ] </dtml-if previous-sequence-start-number> </dtml-if sequence-start> Here goes your listing stuff </dtml-in> ***************************************************** cheers, maik -- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
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>
[ <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> ]
</dtml-if next-sequence-start-number>
<dtml-if previous-sequence-start-number> [ <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> ] </dtml-if previous-sequence-start-number>
</dtml-if sequence-start>
Here goes your listing stuff </dtml-in>
*****************************************************
cheers, maik
participants (3)
-
Dmitry Matveev -
Maik Jablonski -
Michael