Pretty Easy I bet

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35170
interpreted = N
texte = Hi Search Page:I have a search page with 2 contextsone displays by a product Categoryone displays by Company Results PageI have two search contexts one shows results of the Category selectionone shows results of the Company selectionThey both work, but I want to hide/show the empty search table and its founditems.I have put on the results page to test..... category = [category]company= [company]the context I want to hide = [fieldname] either the [Company] or the [Category] - not a value so I have tried:[showif [company]=[company]]for the category search resultsand [hideif [company]!] to test the null and therefore hide that context. What am I missing? Thanks In AdvanceCharley Conquestresults.tpl below Results of Your Search [Include file=HSI_Header.inc]

Category = [category]

company = [company] [showif [category]=[category]] [search db=products.db&eqCategorydata=[url][Category][/url]&asCategorysort=1&asCompanysort=2&max=10&startat=[url][startat][/url]]

Your search for [Category] found [numFound] items

Only the first 100 characters of product descriptions are displayed.
To see a complete product description and a picture (if available) click on the Detail hypertext link.

[foundItems] [/foundItems]
CompanyTitleDescriptionPriceActions
[Company][title][description]$[format .2f][price][/format]Add to CartDetail
[shownext] Show Items [start]-[end]
[/shownext]
[/search][/showif] [showif [company]=[company]] [search db=products.db&eqCompanydata=[url][Company][/url]&asCompanysort=1&max=10&startat=[url][startat][/url]]

Your search for [hideif [category]!Strings]'[Category]'[/hideif] [hideif [category]=Strings]'[COMPANY]'[/hideif] found [numFound] items

Only the first 100 characters of product descriptions are displayed.
To see a complete product description and a picture (if available) click on the Detail hypertext link.

[foundItems] [/foundItems]
CompanyTitleDescriptionPriceActions
[Company][title][description]$[format .2f][price][/format]Add to CartDetail
[shownext] Show Items [start]-[end]
[/shownext]
[/search] [/showif] Show Shopping Cart
Back To Search
------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Pretty Easy I bet (chas@valley.net (chas) 2000)
  2. Re: Pretty Easy I bet (John Butler 2000)
  3. Pretty Easy I bet (chas@valley.net (chas) 2000)
Hi Search Page:I have a search page with 2 contextsone displays by a product Categoryone displays by Company Results PageI have two search contexts one shows results of the Category selectionone shows results of the Company selectionThey both work, but I want to hide/show the empty search table and its founditems.I have put on the results page to test..... category = [category]company= [company]the context I want to hide = [fieldname] either the [Company] or the [Category] - not a value so I have tried:[showif [company]=[company]]for the category search resultsand [hideif [company]!] to test the null and therefore hide that context. What am I missing? Thanks In AdvanceCharley Conquestresults.tpl below Results of Your Search [Include file=HSI_Header.inc]

Category = [category]

company = [company] [showif [category]=[category]] [search db=products.db&eqCategorydata=[url][Category][/url]&asCategorysort=1&asCompanysort=2&max=10&startat=[url][startat][/url]]

Your search for [Category] found [numFound] items

Only the first 100 characters of product descriptions are displayed.
To see a complete product description and a picture (if available) click on the Detail hypertext link.

[founditems] [/foundItems]
CompanyTitleDescriptionPriceActions
[Company][title][description]$[format .2f][price][/format][cart]&sku=[url][sku][/url]>Add to Cart[cart]&sku=[url][sku][/url]>Detail
[shownext] [cart]&category=[url][category][/url]&startat=[start]>Show Items [start]-[end]
[/shownext]
[/search][/showif] [showif [company]=[company]] [search db=products.db&eqCompanydata=[url][Company][/url]&asCompanysort=1&max=10&startat=[url][startat][/url]]

Your search for [hideif [category]!Strings]'[Category]'[/hideif] [hideif [category]=Strings]'[COMPANY]'[/hideif] found [numFound] items

Only the first 100 characters of product descriptions are displayed.
To see a complete product description and a picture (if available) click on the Detail hypertext link.

[founditems] [/foundItems]
CompanyTitleDescriptionPriceActions
[Company][title][description]$[format .2f][price][/format][cart]&sku=[url][sku][/url]>Add to Cart[cart]&sku=[url][sku][/url]>Detail
[shownext] [cart]&Company=[url][Company][/url]&startat=[start]>Show Items [start]-[end]
[/shownext]
[/search] [/showif] [cart]>Show Shopping Cart
[cart]>Back To Search
------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ chas@valley.net (chas)

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:

Duplicate Cart ID (2001) How to put the Trademark Symbol (%99) in Sendmail? (2003) Multiple Users.db Possible? (1997) Secure server question (1997) multi-paragraph fields (1997) Download Question (1997) NT b19 sends extra MIME headers (1997) Fun with dates (1997) WebCat2 - Getting to the browser's username/password data (1997) Claris HomePage messes up the code (1997) WebDNA Solutions ... sorry! (1997) How to Sort Summ data ? (1997) WebDNA version? (2007) MyVitrualMerchant (2007) Can you do this??? and other stuff (1997) setcookie expires (2004) syntax question, not in online refernce (1997) rename a file (1997) [table] tag (2003) Save Word/Excel Docs to Server (2002)