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:

[SHOWIF AND/OR] (1997) Format of Required fields error message (1997) Ram usage (1999) [REFERRER] works with form posts (2003) RAM variables (1997) Banner Sleuth Updater (1999) [WebDNA] forum, ..two? or only one? (2010) form image (2000) Menu Syntax on Edit/Add templates (1998) Database access (2003) Bad Cookie / Internet Option / Internet Explorer (2004) WebCatalog for guestbook ? (1997) Problem passing variables - IE vs Netscape (2000) MacActivity and PCS (1997) RE: Adding headers to email (1997) Nested search (1997) FW: ANother SHOWIF problem (1997) pop up menu's (1998) Signal Raised (1997) f2 download problems (1997)