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:

    
  1. Re: ShowNext Page Style ( Donovan Brooke 2003)
  2. Re: ShowNext Page Style ( Gary Krockover 2003)
  3. Re: ShowNext Page Style ( Frank Nordberg 2003)
  4. Re: ShowNext Page Style ( Glenn Busbin 2003)
  5. Re: ShowNext Page Style ( Frank Nordberg 2003)
  6. Re: ShowNext Page Style ( Palle Bo Nielsen 2003)
  7. ShowNext Page Style ( "WebDna @" 2003)
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:

synching databases on multiple servers (1997) WebCatalog for Postcards ? (1997) Secure server question (1997) RE: Formulas.db + Users.db (1997) RE: textA and Title? (1997) when is date system date or order date? (1997) Cart Number sequence (1997) [Summary] re: Emailer setup (1997) website hosters using webcat? (1999) Forbidden CGI Error (1997) multiple search commands (1997) Merging databases (1997) WC2f3 (1997) RE: completed orders database (1997) Smart caching problems with 2.1b3? (1997) Looking for a Manual (1997) WebCatalog/Mac 2.1b2 New Features (1997) [WriteFile] problems (1997) Nationality (2003) [Fwd: F3 database munching] (1997)