Re: [ShowNext]
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 68905
interpreted = N
texte = interesting! thank you Gary!chrisOn Apr 27, 2007, at 12:55, Gary Krockover wrote:> 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.html>> Snippet: [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.>> GJK>> At 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 digest@talk.smithmicro.com>> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------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:
interesting! thank you Gary!chrisOn Apr 27, 2007, at 12:55, Gary Krockover wrote:> 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.html>> Snippet: [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.>> GJK>> At 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 digest@talk.smithmicro.com>> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------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/
Christophe Billiottet
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:
[WebDNA] Triggers (2016)
ShowNext (1997)
First postarg not taking in $Commands (1997)
RE: OK, here goes... (1997)
Weird cart problem (webcat 2.x) (2000)
Max Record length (1997)
different show next (1997)
[BULK] [WebDNA] Problem with bcc email (2017)
Reversed words (1997)
searching multiple databases (1997)
Training Videos for 3.0 (1998)
Funny Chars (1999)
More than one db with the same namn (was: WC2f3) (1997)
Change in Host? (1999)
Need help (1998)
WebCat2: Items xx to xx shown, etc. (1997)
Search Engines (2002)
WebCatalog for guestbook ? (1997)
[OT] Display Glitch (2004)
Help name our technology! I found it (1997)