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:

User/pass with tcpconnect (2000) Sandboxes & Kitty Litter trays (2003) Cart questions (1997) Searching for Email Address (2004) [WebDNA] How to valuate a domain name? (2010) pop up menu's (1998) Hello??? (1997) Renumbering Database Records (1999) Question about [encrypt] (1998) More than one db with the same namn (was: WC2f3) (1997) is 'template' a reserved webcat tag? (2000) WebCommerce: Folder organization ? (1997) Loop into field (1998) SUBMIT buttons not working.... (2000) [table] retained in memory (2006) 3.0 [TEXT] variables (1998) Re:Searching for ALL / empty form field (1997) WebCatalog for Postcards ? (1997) OT New use for WebCat (1998) Generating unique SKU from [cart] (1997)