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 coupleof hours and I just changed stumbled onto something that fixed part of myproblem.I had forgotten the all important _ to pass on my search parameters andformvariables. [Duh] This fixed the problem of the links on the listedcategories 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 upif they searched for brands instead? I'm including my revised code so thatyou can all *see* what-ever the @?#$! it is I'm doing wrong. The links on this main.tpl look likethis:
List All Brand NamesList All CategoriesThe 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 showthe 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] [Catagory]</TD>[ShowIf [index]\3] |
[/ShowIf][/FoundItems]
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:
Hi again,I've been struggling with my previously posted problem for the last coupleof hours and I just changed stumbled onto something that fixed part of myproblem.I had forgotten the all important _ to pass on my search parameters andformvariables. [Duh] This fixed the problem of the links on the listedcategories 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 upif they searched for brands instead? I'm including my revised code so thatyou can all *see* what-ever the @?#$! it is I'm doing wrong. The links on this main.tpl look likethis:
List All Brand NamesList All CategoriesThe 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 showthe 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]
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:
emailer cc to figured out (1997)
color and size options / ARCHIVES (1997)
server 2003 weirdness (2004)
[WebDNA] I'm back! (2008)
Sorting Date (2004)
Re:HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997)
Client-side Image Maps and WebCat? (1998)
changing creator codes (2000)
emailer setup (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
OSX Dev Server? (2004)
Car Database (2002)
Authorize.net? (2003)
Translator. (1998)
Running 2 two WebCatalog.acgi's (1996)
Ampersand (1997)
Listfiles (1998)
expired beta (1997)
Re1000001: Setting up shop (1997)
WebCat on Alpha? (1997)