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 witha 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 nota whole other page and then another when the other condition is met. Itseems like an inefficient way to do it. Would that be the normal way orany other ideas?Thanks for your help Ken.RHProutybristol@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:
Okay... I suspected something like that, but how do I make a template witha 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 nota whole other page and then another when the other condition is met. Itseems like an inefficient way to do it. Would that be the normal way orany other ideas?Thanks for your help Ken.RHProutybristol@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:
SERIOUS Problem (1998)
Roundup function? (1997)
Sorting by date (1997)
Add a field to the error log? (1997)
What am I missing (1997)
Email Scavengers (2003)
WebCat & cookies (1998)
email program problem (1998)
select multiple (1997)
Re:quit command on NT (1997)
Formatting dates stored in db (2003)
[removehtml]? (2000)
WebCatalog for guestbook ? (1997)
How to verify email address (1997)
NT Woes (1997)
Summary search -- speed (1997)
This list needs a digest: rant, rave... (1997)
Weird Cookie Problem Part 2 (2007)
[WebDNA] OS and version (2019)
Forms Search Questions (1997)