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:

memory in high traffic servers (2004) WebCommerce: Folder organization ? (1997) WebDNA 4.5 under IIS6, Win2003 (2003) [WebDNA] Version 7.x: webdna.ini and EmailerPrefs (2012) Newbie problem blah blah blah (1997) More on the email templates (1997) Textarea Breaks (2000) politeness (was searches with dash...) Please Read (2000) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) OK, here goes... (1997) RE: is sku a REQUIRED field on NT (1997) TCPConnect (1998) [SHOWNEXT] Examples (1997) [TIME] not working (2007) [WebDNA] Converting | to TAB (2010) WC2b15 File Corruption (1997) Newbie: ASIP vs WebTen? (2000) update on wn searching (1997) Writing to triggers.db (2005) [isfolder] and [filename] (1997)