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:
Problems With NT 4.0.1 Install (2000)
hiding return characters (2000)
Help: sorting in found set. (2001)
WebDNA on Windows questions (2007)
Netinfo... (2002)
[WebDNA] [BULK] WebDNA 7 - Showing every other far DB - Fault! (2011)
StoreBuilder/SiteBuilder (2005)
webcat pro (1998)
Cache Access Error (2000)
Date Sorting (1997)
Graphical display of sales volume (2003)
Server Load (2000)
many-to-one problem (1998)
form data submission gets truncated (1997)
SendTo more emails (1998)
Privacy Issue (LEGIT QUESTION) (2003)
how does [middle] work? (1998)
Re:Emailer and encryption (1997)
WebCatalog for Dummies part 2 (2000)
FW: WebDNA-Talk searchable? (1997)