Re: Help getting [shownext] to increment
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 47364
interpreted = N
texte = Opps forgot to add that in in results page I have this:[formvariables][text]name_[name]=[name][/text][/formvariables][text]var_from=0[/text][showif [name_from]=from][text]var_from=1[/text][/showif]-- Regards,Marko------------------------------------------------------------------Marko Bernyk - Senior System Engineermailto:marko@conexus.com.au http://www.conexus.com.auTechnical Services, Conexus Pty Ltd, Sydney, AustraliaPh 02 9975 2799 Fax 02 9975 2799 :)------------------------------------------------------------------On Monday, 3 February 2003 10:37 AM, Marko Bernyk
wrote:>Thought I'd let you know.>>Using the [searchstring] tag as part of the [shownext] exposes>your 'code' under Webcat 3.07.>(Dunno if it does the same for versions over 3.07)>>It is not Context Sensitive and you have to rework your links>for [shownext]>>This is what I use:>>Show me Items: [shownext]href=results.tpl?item=[url][item][/url]&from=[start]>[start]-[end]>| [/shownext]>>my result page has a [search]:>>[search>db=database.db&eqFIELDdatarq=[url][item][/url]&FIELDsort=1&FIELDsdir=as&max=20[showif>[var_from]=1]&startat=[from][/showif]]>>Cheers.>>-- >Regards,>Marko>------------------------------------------------------------------>Marko Bernyk - Senior System Engineer>mailto:marko@conexus.com.au http://www.conexus.com.au>Technical Services, Conexus Pty Ltd, Sydney, Australia>Ph 02 9975 2799 Fax 02 9975 2799 :)>------------------------------------------------------------------>>On Friday, 31 January 2003 10:26 PM, John Peacock wrote:>>Kenneth Grome wrote:>>> John's almost right, except for two things:>>> >>> 1- The search context requires a startat parameter, not a start >>> parameter.>>> >>>>Yes, sorry, startat, not start.>>>>> 2- The value of the startat parameter must be a variable ... and the >>> value of that variable must be set inside the shownext>>context.>>>>Wrong! I don't know where Ken gets this stuff. The [searchstring] tag includes >>everything you need to continue your search. The startat parameter must be >>present in the original search and then it is available as part of the >>[searchstring] tag. There is no requirement that it be a variable, because >>_all_ form parameters are variables.>>>>> >>> By the way, if you stop messing around with the searchstring tag and >>> instead put all the required variables into your shownext URLs manually, >>> as I have demonstrated above, then you will probably begin to understand >>> what's going on when you click a shownext link.>>>>You'll also spend a lot of time writing non-portable code. [searchstring] does >>everything for you. With Ken's techniques, you cannot have a page be the target >>for multiple search variations and have the [searchstring] automatically do the >>right thing.>>>>> >>> Using the searchstring tag tends to hide important information from you, >>> which only confuses the issue. And as John said in his previous >>> message, the searchstring tag has problems -- which is yet another good >>> reason to avoid using it.>>> >>>>No, the documentation has problems; the [searchstring] works just fine. Ken and >>I differ, here. He got burned by the error in the docs and never recovered his >>confidence in the [shownext]/[searchstring] pair. I figured out why the docs >>were wrong and use [searchstring] every day without fear.>>>>If you care to see just how magical [shownext] is, check out this from our web >>site. The raw WebDNA:>>>>[ShowNext position=begin&method=post&max=1]>>>>[/ShowNext]>>>>The processed page (for a representative search):>>>>>>>>John>>>>-- >>John Peacock>>Director of Information Research and Technology>>Rowman & Littlefield Publishing Group>>4720 Boston Way>>Lanham, MD 20706>>301-459-3366 x.5010>>fax 301-429-5747>>>>>>------------------------------------------------------------->>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/>>>>>>------------------------------------------------------------->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/>-------------------------------------------------------------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:
Opps forgot to add that in in results page I have this:[formvariables][text]name_[name]=[name][/text][/formvariables][text]var_from=0[/text][showif [name_from]=from][text]var_from=1[/text][/showif]-- Regards,Marko------------------------------------------------------------------Marko Bernyk - Senior System Engineermailto:marko@conexus.com.au http://www.conexus.com.auTechnical Services, Conexus Pty Ltd, Sydney, AustraliaPh 02 9975 2799 Fax 02 9975 2799 :)------------------------------------------------------------------On Monday, 3 February 2003 10:37 AM, Marko Bernyk wrote:>Thought I'd let you know.>>Using the [searchstring] tag as part of the [shownext] exposes>your 'code' under Webcat 3.07.>(Dunno if it does the same for versions over 3.07)>>It is not Context Sensitive and you have to rework your links>for [shownext]>>This is what I use:>>Show me Items: [shownext]href=results.tpl?item=[url][item][/url]&from=[start]>[start]-[end]>| [/shownext]>>my result page has a [search]:>>[search>db=database.db&eqFIELDdatarq=[url][item][/url]&FIELDsort=1&FIELDsdir=as&max=20[showif>[var_from]=1]&startat=[from][/showif]]>>Cheers.>>-- >Regards,>Marko>------------------------------------------------------------------>Marko Bernyk - Senior System Engineer>mailto:marko@conexus.com.au http://www.conexus.com.au>Technical Services, Conexus Pty Ltd, Sydney, Australia>Ph 02 9975 2799 Fax 02 9975 2799 :)>------------------------------------------------------------------>>On Friday, 31 January 2003 10:26 PM, John Peacock wrote:>>Kenneth Grome wrote:>>> John's almost right, except for two things:>>> >>> 1- The search context requires a startat parameter, not a start >>> parameter.>>> >>>>Yes, sorry, startat, not start.>>>>> 2- The value of the startat parameter must be a variable ... and the >>> value of that variable must be set inside the shownext>>context.>>>>Wrong! I don't know where Ken gets this stuff. The [searchstring] tag includes >>everything you need to continue your search. The startat parameter must be >>present in the original search and then it is available as part of the >>[searchstring] tag. There is no requirement that it be a variable, because >>_all_ form parameters are variables.>>>>> >>> By the way, if you stop messing around with the searchstring tag and >>> instead put all the required variables into your shownext URLs manually, >>> as I have demonstrated above, then you will probably begin to understand >>> what's going on when you click a shownext link.>>>>You'll also spend a lot of time writing non-portable code. [searchstring] does >>everything for you. With Ken's techniques, you cannot have a page be the target >>for multiple search variations and have the [searchstring] automatically do the >>right thing.>>>>> >>> Using the searchstring tag tends to hide important information from you, >>> which only confuses the issue. And as John said in his previous >>> message, the searchstring tag has problems -- which is yet another good >>> reason to avoid using it.>>> >>>>No, the documentation has problems; the [searchstring] works just fine. Ken and >>I differ, here. He got burned by the error in the docs and never recovered his >>confidence in the [shownext]/[searchstring] pair. I figured out why the docs >>were wrong and use [searchstring] every day without fear.>>>>If you care to see just how magical [shownext] is, check out this from our web >>site. The raw WebDNA:>>>>[ShowNext position=begin&method=post&max=1]>>>>[/ShowNext]>>>>The processed page (for a representative search):>>>>>>>>John>>>>-- >>John Peacock>>Director of Information Research and Technology>>Rowman & Littlefield Publishing Group>>4720 Boston Way>>Lanham, MD 20706>>301-459-3366 x.5010>>fax 301-429-5747>>>>>>------------------------------------------------------------->>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/>>>>>>------------------------------------------------------------->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/>-------------------------------------------------------------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/
Marko Bernyk
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:
Database Security (1998)
Re:ListFields and [name] (1997)
Using Applescript to process WebCatalog functions (1998)
Date search - yes or no (1997)
$Replace with [founditems] (1997)
For those of you not on the WebCatalog Beta... (1997)
WebCat & WebTen (1997)
RE: Formulas.db + Users.db (1997)
[math] error (2000)
WebCat2b13MacPlugIn - [include] (1997)
Deleting Orders (1997)
flushdatabases (1997)
[searchString] (1997)
Looking for WebCatalog Linux experience/comments. (2001)
Bad match! (2002)
Sub Categories (2000)
[WebDNA] Issues regarding static vs. dynamic pages (2011)
OT: Poll Results (2002)
WebCat on Alpha? (1997)
Formulas.db + Users.db (1997)