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:

Date Range Issue (2006) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) newcart (1997) Bug or syntax error on my part? (1997) Rhapsody? (1997) P3P and IE 6 (2004) Quit revisited (1997) 2.0 Info (1997) Secure Web Server (1999) [cart] tag (2000) Size limit for tmpl editor ? (1997) need to add a sku field to an existing db (2005) Customer - again (1998) WebCatalog-NT?'s (1996) WebDNA language module for BBEdit? (2003) Authenticate (1997) WCS Newbie question (1997) All questions are welcome on this list (1997) [SearchString] (1998) A little syntax help (1997)