Re: Trouble with Showif and Search

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19521
interpreted = N
texte = Okay... I suspected something like that, but how do I make a template with a search function that works or doesn't based on .. whatever..I can put the entire contents of the page inside the showif and hide or not a whole other page and then another when the other condition is met. It seems like an inefficient way to do it. Would that be the normal way or any other ideas?Thanks for your help Ken.RHProuty bristol@interpage.net >>I am having trouble getting this to work.... >> >>[showif [switch]=yes][Search db=some.db&eqSKUdata=[SKU]][Founditems][/showif] >> >>This is at the top of my template. As search happens when [switch] value = >>yes. To make this work I need to show [/founditems][/search] later in the >>template a the same time as the above. It is switched the same way as >>in,... >> >>[showif [switch]=yes][/founditems][/search][/showif] >> >>.. but I get an error.. >> >>Error: Error: expected [/FOUNDITEMS], but found [/showif] >> >>Shouldn't this work? > > >No, this is a classic example of imperfect nesting. You have to put the >*entire* search context, or the *entire* founditems context, inside the >showif context. > >Sincerely, >Ken Grome >808-737-6499 >WebDNA Solutions >mailto:ken@webdna.net >http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Trouble with Showif and Search (Kenneth Grome 1998)
  2. Re: Trouble with Showif and Search (RH Prouty 1998)
  3. Re: Trouble with Showif and Search (Kenneth Grome 1998)
  4. Trouble with Showif and Search (RH Prouty 1998)
Okay... I suspected something like that, but how do I make a template with a search function that works or doesn't based on .. whatever..I can put the entire contents of the page inside the showif and hide or not a whole other page and then another when the other condition is met. It seems like an inefficient way to do it. Would that be the normal way or any other ideas?Thanks for your help Ken.RHProuty bristol@interpage.net >>I am having trouble getting this to work.... >> >>[showif [switch]=yes][Search db=some.db&eqSKUdata=[SKU]][founditems][/showif] >> >>This is at the top of my template. As search happens when [switch] value = >>yes. To make this work I need to show [/founditems][/search] later in the >>template a the same time as the above. It is switched the same way as >>in,... >> >>[showif [switch]=yes][/founditems][/search][/showif] >> >>.. but I get an error.. >> >>Error: Error: expected [/FOUNDITEMS], but found [/showif] >> >>Shouldn't this work? > > >No, this is a classic example of imperfect nesting. You have to put the >*entire* search context, or the *entire* founditems context, inside the >showif context. > >Sincerely, >Ken Grome >808-737-6499 >WebDNA Solutions >mailto:ken@webdna.net >http://www.webdna.net RH Prouty

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:

WebCat2 several catalogs? (1997) Ads.db (1997) [showif] question (2000) MATH PROBLEM (1997) Emailer setup (1997) Pipes instead of tabs (1998) Search results templates (1996) [WebDNA] webdna.us (2008) Removing [showif] makes a big difference in speed (1997) sendmail spaces (1997) price carry over (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Need help with emailer- 2 issues (1997) Searching multiple fields (1997) [searchString] (1997) WebCat2 as a chat server? (1997) Error:Too many nested [xxx] contexts (1997) Can he do that? (1998) Pls Remove me from all Lists (1998) [OT] DOD again (2003)