Re: ShowNext Page Style
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53765
interpreted = N
texte = I have this up at the doc's, came in handy for a particular customized shownext, not sure if it would help Ronny or not though, but I'll offer it: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.GK -------------------------------------------------------------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 this up at the doc's, came in handy for a particular customized shownext, not sure if it would help Ronny or not though, but I'll offer it: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.GK -------------------------------------------------------------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:
Shopping Cart Page (1997)
Shell on MacOSX (2004)
Problems passing [SKU] with $Replace in 2.0 (1997)
Secure server question (1997)
[WebDNA] Sort Direction matches the written to file order (2015)
WCS Newbie question (1997)
[WebDNA] TCPConnect Slowness (2013)
Database Path (1998)
[WebDNA] search command problem (2009)
Secure server question (1997)
[LOOKUP] (1997)
[include] and v.email (1998)
WC2.0 Memory Requirements (1997)
WebCat2b15MacPlugin - showing [math] (1997)
iTools and 3.0.8 (2000)
[WebDNA] Local Development On Windows 8.1 (2015)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
[math] with first letter in field? (1997)
PCS Customer submissions ? (1997)
trouble updating records in database (1998)