Pretty Easy I bet
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35170
interpreted = N
texte = HiSearch Page:I have a search page with 2 contextsone displays by a product Categoryone displays by CompanyResults 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 valueso 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.
Company | Title | Description | Price | Actions |
[foundItems][Company] | [title] | [description] | $[format .2f][price][/format] | Add to Cart | Detail |
[/foundItems]
[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.
Company | Title | Description | Price | Actions |
[foundItems][Company] | [title] | [description] | $[format .2f][price][/format] | Add to Cart | Detail |
[/foundItems]
[shownext]
Show Items [start]-[end][/shownext]
[/search][/showif]
Show Shopping CartBack To Search