ShowIf helper?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19085
interpreted = N
texte = Hi again,I've been struggling with my previously posted problem for the last couple of hours and I just changed stumbled onto something that fixed part of my problem. I had forgotten the all important _ to pass on my search parameters and formvariables. [Duh] This fixed the problem of the links on the listed categories not working. They are fine now and show up on my results page. Now the only problem I have now is this: How do I get the brands to show up if they searched for brands instead? I'm including my revised code so that you can all *see* what-ever the @?#$! it is I'm doing wrong. The links on this main.tpl look like this:List All Brand Names
List All Categories The problem is on the Search.tpl. The way I have [Showif] & [Founditems] set up is not working but I can't figure out what comparison to use to show the right search summary. I read through the online reference twice, without skipping anything but none of the comparisons listed seems to apply.My (bad) code (minus the fluf) on the search page looks like this:[ShowIf [action]=Search&Search=_Catagory]Product Categories[/ShowIf] [ShowIf [action]=Search&Search=_Brand]Brand Names[/ShowIf] [FoundItems] [/ShowIf] [/FoundItems]
[Catagory]< /TD> [ShowIf [index]\3]
Again, thanks in advance for all suggestions.Angel J. Bennett ! We want the world and VP / Creative Dir. ! we want it... The WWW Store ! NOW! 818-905-6787 ! http://www.thewwwstore.com Associated Messages, from the most recent to the oldest:

    
  1. Re: ShowIf helper? (PCS Technical Support 1998)
  2. ShowIf helper? (Angel Bennett 1998)
  3. ShowIf helper? (Angel Bennett 1998)
Hi again,I've been struggling with my previously posted problem for the last couple of hours and I just changed stumbled onto something that fixed part of my problem. I had forgotten the all important _ to pass on my search parameters and formvariables. [Duh] This fixed the problem of the links on the listed categories not working. They are fine now and show up on my results page. Now the only problem I have now is this: How do I get the brands to show up if they searched for brands instead? I'm including my revised code so that you can all *see* what-ever the @?#$! it is I'm doing wrong. The links on this main.tpl look like this:List All Brand Names
List All Categories The problem is on the Search.tpl. The way I have [showif] & [founditems] set up is not working but I can't figure out what comparison to use to show the right search summary. I read through the online reference twice, without skipping anything but none of the comparisons listed seems to apply.My (bad) code (minus the fluf) on the search page looks like this:[ShowIf [action]=Search&Search=_Catagory]Product Categories[/ShowIf] [ShowIf [action]=Search&Search=_Brand]Brand Names[/ShowIf] [founditems] [/ShowIf] [/FoundItems]
[url][Ca tagory][/url]&cart=[cart]&searchTitle=[url][Catagory][/url]>[Catagory]< /TD> [ShowIf [index]\3]
Again, thanks in advance for all suggestions.Angel J. Bennett ! We want the world and VP / Creative Dir. ! we want it... The WWW Store ! NOW! 818-905-6787 ! http://www.thewwwstore.com Angel Bennett

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:

Multiple Passwords (1997) email error 159 (1998) select multiple (1997) Need Sample Template - just purchased (1997) RAM variables (1997) greater than or equal to (1997) writing db to disk (1997) Status of variable hierarchy changes? (2000) flushdatabases (2000) New command suggestion (was Modifying databases manually) (1997) WebCat2 as a chat server? (1997) Date problems (1997) Upgrading old WebCat Database Files (1997) Verifying SSL on Page (2002) Re:Version 2.0 and 1.6 simultaneous (1997) WebCat2b15MacPlugin - showing [math] (1997) shipping calculations, lookup command (1997) More on the email templates (1997) WebMerchant when CC network is down (1998) Guestbook (2000)