Re: [ShowNext]
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11918
interpreted = N
texte = >Hi>>I'm using this piece of WebDNA and which ever of the show next items>links I click on I still get the first 25 items again! Any ideas?>>If you want to see it in action, got www.ShopsOnTheNet.com, click the>search button in the left hand frame and then click on Browse full list>(alphabetical) below the main search form.>>>[Search db=shops.db&createdtype=date&grcreateddata=Mar 01>1995&namesort=1&max=25]>> Found [NumFound] entries:
>> [ShowNext position=begin]>
Show items>[start]-[end]> [/ShowNext]>>
> [FoundItems]> - [name] -- [description]>-- [country] [ShowIf [secure]=YES]-- COLOR=#FF0000>S[/ShowIf] [ShowIf [baskets]=YES]-- COLOR=#FF0000>SB[/ShowIf]> [/FoundItems]>
>>> [ShowNext position=end]>
Show items>[start]-[end]> [/ShowNext]>>[/Search]You keep getting the same results because you're doing two searches. Firstyou're searching according to the search string in the [shownext] context,then you're searching again by performing the search inside the [searchcontext at the top of the page.Only the last search results are shown, and since the last search is thepredefined context search, you will always get the same results unless youchange the search context every time it searches.Try adding &startat=[start] to your search context, then get rid of the$search command and the [searchstring] tag inside the shownext context, andreplace those items with &startat=[start]. Here's what I mean:[Search db=shops.db&createdtype=date&grcreateddata=Mar 01,1995&namesort=1&max=25&startat=[start]][ShowNext]
Show items [start]-[end][/ShowNext]This lets the search context always perform the search, and it resets the[startat] value to match the value of [start] that appears in the shownextcontext ... :)Sincerely, Ken GromeWebDNA Solutions
Associated Messages, from the most recent to the oldest:
>Hi>>I'm using this piece of WebDNA and which ever of the show next items>links I click on I still get the first 25 items again! Any ideas?>>If you want to see it in action, got www.ShopsOnTheNet.com, click the>search button in the left hand frame and then click on Browse full list>(alphabetical) below the main search form.>>>[Search db=shops.db&createdtype=date&grcreateddata=Mar 01>1995&namesort=1&max=25]>> Found [NumFound] entries:
>> [ShowNext position=begin]>
Show items>[start]-[end]> [/ShowNext]>>
> [founditems]> - [name] -- [description]>-- [country] [ShowIf [secure]=YES]-- COLOR=#FF0000>S[/ShowIf] [ShowIf [baskets]=YES]-- COLOR=#FF0000>SB[/ShowIf]> [/FoundItems]>
>>> [ShowNext position=end]>
Show items>[start]-[end]> [/ShowNext]>>[/Search]You keep getting the same results because you're doing two searches. Firstyou're searching according to the search string in the
[shownext] context,then you're searching again by performing the search inside the [searchcontext at the top of the page.Only the last search results are shown, and since the last search is thepredefined context search, you will always get the same results unless youchange the search context every time it searches.Try adding &startat=[start] to your search context, then get rid of the$search command and the [searchstring] tag inside the shownext context, andreplace those items with &startat=[start]. Here's what I mean:[Search db=shops.db&createdtype=date&grcreateddata=Mar 01,1995&namesort=1&max=25&startat=[start]]
[shownext]Show items [start]-[end][/ShowNext]This lets the search context always perform the search, and it resets the[startat] value to match the value of [start] that appears in the shownextcontext ... :)Sincerely, Ken GromeWebDNA Solutions
Kenneth Grome
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:
Who is doing sign-ups-got it (1998)
Our Webcat site launched (1997)
Formating Tables w/[founditems] (1998)
WebCat2 several catalogs? (1997)
$Append for Users outside the ADMIN group (1997)
[writefile] (1997)
Search design (1997)
Lastautonumber (2005)
Nested tags count question (1997)
NewCart+Search with one click ? (1997)
WebCat2b12 - nesting [tags] (1997)
Web Catalog Book? (1998)
PCS Customer submissions ? (1997)
Emailer Set Up (1997)
RE: .html to .tpl (1998)
[WebDNA] Acceleratin Search / Index Performance in a Formum Service (2013)
textA and Title? (1997)
Caching pages...again (2001)
Showing once on a founditems (1997)
problems with 2 tags (1997)