Re: [ShowNext]
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 68904
interpreted = N
texte = I have a snippet on the interactive docs that may help you or give you something to work with:http://webdna.smithmicro.com/ref/pages.html?context=ShowNextContext.htmlSnippet: [ShowNext] replacement. This will show your next links in the format of Page 1 | 2 | 3 etc and can be used even when the page isn't a results page from a [Search] command:[search db=YOURDATABSE.DB&eqSEARCH_CRITERIAdatarq=SOMETHING][text show=f]dividerA=[math]ceil([numfound]/25)[/math][/text]Page: [Loop start=1&end=[dividerA]]
[index] | [/Loop][/search]This example breaks down the results pages into lists of 25 results per page. Substitute for the 25 in all places as needed, subtract one number from the one you use to get the last digit in this formula: ?startnum=[math]([index]*25)-24[/math]On YOUR_RESULTS_PAGE, you will have the actual search and add this to your query: &max=25&startat=[startnum]. Again substituting the 25 with a digit of your choosing for how many results you want per page.GJKAt 10:49 AM 4/27/2007, you wrote:>right! i know it may takes some time and plan to use [Spawn].>I just did some testing and found that>>[search db=bases/remates.txt&eqrematedatarq=[NumRemate]&max=10] [shownext][start]-[end]
[/shownext][/search]>>returns something like>>11-20>21-30>31-40>41-50>51-60>61-70>71-80>81-90>etc...>>if i use a [search db=bases/remates.txt&rnlotedata=[start] [end]] >inside the [search] context, i guess this should make it. Just one >single question: why does it start at 11-20 and not 1-10 ?>>chris-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I have a snippet on the interactive docs that may help you or give you something to work with:http://webdna.smithmicro.com/ref/pages.html?context=ShowNextContext.htmlSnippet: [shownext] replacement. This will show your next links in the format of Page 1 | 2 | 3 etc and can be used even when the page isn't a results page from a [search] command:[search db=YOURDATABSE.DB&eqSEARCH_CRITERIAdatarq=SOMETHING][text show=f]dividerA=[math]ceil([numfound]/25)[/math][/text]Page: [Loop start=1&end=[dividerA]][math]([index]*25)-24[/math]">[index] | [/Loop][/search]This example breaks down the results pages into lists of 25 results per page. Substitute for the 25 in all places as needed, subtract one number from the one you use to get the last digit in this formula: ?startnum=[math]([index]*25)-24[/math]On YOUR_RESULTS_PAGE, you will have the actual search and add this to your query: &max=25&startat=[startnum]. Again substituting the 25 with a digit of your choosing for how many results you want per page.GJKAt 10:49 AM 4/27/2007, you wrote:>right! i know it may takes some time and plan to use [spawn].>I just did some testing and found that>>[search db=bases/remates.txt&eqrematedatarq=[NumRemate]&max=10] [shownext][start]-[end]
[/shownext][/search]>>returns something like>>11-20>21-30>31-40>41-50>51-60>61-70>71-80>81-90>etc...>>if i use a [search db=bases/remates.txt&rnlotedata=[start] [end]] >inside the [search] context, i guess this should make it. Just one >single question: why does it start at 11-20 and not 1-10 ?>>chris-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Gary Krockover
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
3rd party processor question (2003)
WebCatalog for Mac 2.0.1 Released (1997)
Question... [OT] (2002)
multiple front end servers (2004)
Search for dates greater than [date] (1997)
PCS Emailer's role ? (1997)
WebMerchant & CC Response (2002)
Press Release hit the NewsWire!!! (1997)
can WC render sites out? (1997)
WebCat2 - [format thousands] (1997)
A little syntax help (1997)
To Err or Not Custom Error (1999)
Problems with [Search] param - Mac Plugin b15 (1997)
Mac 2.1b2 speed (1997)
OFF TOPIC - sendmail problem (2003)
Tracking System? (1997)
Time comparison question (1998)
Some Advise needed (1997)
Attention all list readers (1997)
Re:2nd WebCatalog2 Feature Request (1996)