Re: [ShowNext]
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11942
interpreted = N
texte = >>>>Try adding &startat=[start] to your search context, then get rid of the>>$search command and the [searchstring] tag inside the shownext context, and>>replace 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 shownext>>context ... :)>>>>>I modified the WebDNA as suggested above:>>>[Search db=shops.db&createdtype=date&grcreateddata=Mar 01>1995&namesort=1&max=25&startat=[start]]>> 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]>>>and received the following error when clicking on a show next link:>>Error: WebCatalog does not understand the 'startat=26' commandAah, I see your error. When you look at the
Show items [start]-[end][/ShowNext]Sincerely, Ken GromeWebDNA Solutions
Associated Messages, from the most recent to the oldest:
>>>>Try adding &startat=[start] to your search context, then get rid of the>>$search command and the [searchstring] tag inside the shownext context, and>>replace 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 shownext>>context ... :)>>>>>I modified the WebDNA as suggested above:>>>[Search db=shops.db&createdtype=date&grcreateddata=Mar 01>1995&namesort=1&max=25&startat=[start]]>> 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]>>>and received the following error when clicking on a show next link:>>Error: WebCatalog does not understand the 'startat=26' commandAah, I see your error. When you look at the
[shownext] contexts, you'll see that you used $ where you should have used ?WebCat sees a huge difference in the meaning of $ and ?. When you use $you're telling WebCat that the next word is a WebCat command. But startatis not a command, it's a variable, so WebCat gives you the error youdiscovered.Also, I think I made a mistake in my suggestion above ... so if my shownextsuggestion above doesn't work, try this instead:
[shownext]Show items [start]-[end][/ShowNext]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:
return missing item (was:WebCat Sales) (1997)
Enhanced Master Counter? (1997)
fixed date problem (1997)
Installation webCatalog (French speakers please help) (1998)
chicken / egg::purchase / setheader (2002)
Search/sort in URL Was: GuestBook example (1997)
[listfiles] nested in a [loop] (1998)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
ShowNext (1997)
show all problem (1997)
japanese characters (1997)
Bug Report, maybe (1997)
Shopping carts and reloading pages (1997)
NT Manual (1997)
WebCat2 beta 11 - new prefs ... (1997)
Not really WebCat- (1997)
Database Not Found Problem (2004)
[shownext] and sort (1998)
OFF-TOPIC: Lending investors ... (2002)
WC2f3 (1997)