Re: Categories and Sub-categories

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47376
interpreted = N
texte = On Fri, Jan 31 Donovan wrote:> You will need to have both a category and a subcat field in your > database. I do have all of my categories in the database - Category1, Category2, and Category3.> Then on your results page you will probably find a search. The following is the code from the TeaRoom Search.tpl page, which displays Category1 entries properly: - - - - - - - - - - - - - - - - - &Category1=&startat=1>
- - - - - - - - - - - - - - - - -> Depending on how your comparisons are set up (sometimes they can be > set up in a [text][/text] var or through a form field from the > previous page) you will have to specify something like: > > eqSUBCATEGORYdatarq=[url][__subcat][/url] > > [showif [the_search]=CAT] > [text]--search comparison without a subcat--[/text] > [/showif] > [showif [the_search]=SUB] > [text]--search comparison without a subcat and only with a > category--[/text] > [/showif] > > [search][/search] I've done something similar to this to display the sub-categories, but it doesn't work. Here's the code I have: - - - - - - - - - - - - - - - - - >
=> Category2summ=t>

- - - - - - - - - - - - - - - - - The above doesn't work properly, but I am getting closer. When I click on one of the main category links, it _will_ display the Category2 entries, but not as links - just as text. Here's what it displays when I click on the Industrial Shelving link (my notes are in the parentheses):Category _Industrial_Shelving_ (this is displayed as a link) Industrial ShelvingError: Error: expected [raw][/[/raw][param1]], but found [raw][/[/raw][param2]] instead=Industrial%20Shelving> Rivet Style Shelving w/wire grid decking (this is displayed as text) Rivet Style Shelving w/melamine decking (this is displayed as text) Rivet Style Shelving w/wood decking (this is displayed as text) Rivet Style Shelving w/o decking (this is displayed as text)> Then in your admin, you will have to add the ability to edit that new > field in your database. I don't see how to do this. Where is it located in Admin?Thanks, Marc*--*--*--*--*--*--*--*--*--*--*--*--*--*--* Superior Shelving Systems P.O. Box 6949 Tacoma, WA 98406253-756-8138 253-752-1610 faxhttp://www.SuperiorShelving.comThe Storage Shelving Specialists Since 1984 *--*--*--*--*--*--*--*--*--*--*--*--*--*--* ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Categories and Sub-categories (Donovan 2003)
  2. Re: Categories and Sub-categories (Sales 2003)
  3. Re: Categories and Sub-categories (Sales 2003)
  4. Re: Categories and Sub-categories (Donovan 2003)
  5. Re: Categories and Sub-categories (Donovan 2003)
  6. Re: Categories and Sub-categories (Marko Bernyk 2003)
  7. Re: Categories and Sub-categories (Tim Robinson 2003)
  8. Categories and Sub-categories (Superior Shelving 2003)
On Fri, Jan 31 Donovan wrote:> You will need to have both a category and a subcat field in your > database. I do have all of my categories in the database - Category1, Category2, and Category3.> Then on your results page you will probably find a search. The following is the code from the TeaRoom Search.tpl page, which displays Category1 entries properly: - - - - - - - - - - - - - - - - - &Category1=&startat=1>
- - - - - - - - - - - - - - - - -> Depending on how your comparisons are set up (sometimes they can be > set up in a [text][/text] var or through a form field from the > previous page) you will have to specify something like: > > eqSUBCATEGORYdatarq=[url][__subcat][/url] > > [showif [the_search]=CAT] > [text]--search comparison without a subcat--[/text] > [/showif] > [showif [the_search]=SUB] > [text]--search comparison without a subcat and only with a > category--[/text] > [/showif] > > [search][/search] I've done something similar to this to display the sub-categories, but it doesn't work. Here's the code I have: - - - - - - - - - - - - - - - - - >
=> Category2summ=t>

- - - - - - - - - - - - - - - - - The above doesn't work properly, but I am getting closer. When I click on one of the main category links, it _will_ display the Category2 entries, but not as links - just as text. Here's what it displays when I click on the Industrial Shelving link (my notes are in the parentheses):Category _Industrial_Shelving_ (this is displayed as a link) Industrial ShelvingError: Error: expected [raw][/[/raw][param1]], but found [raw][/[/raw][param2]] instead=Industrial%20Shelving> Rivet Style Shelving w/wire grid decking (this is displayed as text) Rivet Style Shelving w/melamine decking (this is displayed as text) Rivet Style Shelving w/wood decking (this is displayed as text) Rivet Style Shelving w/o decking (this is displayed as text)> Then in your admin, you will have to add the ability to edit that new > field in your database. I don't see how to do this. Where is it located in Admin?Thanks, Marc*--*--*--*--*--*--*--*--*--*--*--*--*--*--* Superior Shelving Systems P.O. Box 6949 Tacoma, WA 98406253-756-8138 253-752-1610 faxhttp://www.SuperiorShelving.comThe Storage Shelving Specialists Since 1984 *--*--*--*--*--*--*--*--*--*--*--*--*--*--* ------------------------------------------------------------- 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://webdna.smithmicro.com/ Sales

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:

WebCat2 - Getting to the browser's username/password data (1997) WC1.6 to WC2 date formatting (1997) emailer on Windows Beta 18 (1997) Flag checking (2000) What am I missing (1997) WebCat2b15MacPlugin - [protect] (1997) Sku numbers (1997) RE: type 2 errors with ssl server (1997) Heads up, cookies *may* be outlawed in Europe (2001) FlushDatabase Suggestion (1998) Bug? (1997) Setting up shop (1997) really wierd browser truncating (1997) Data Entry ... Excel Style ... How To? (2001) Protect Tag and Groups (1998) Showing unopened cart (1997) my price won't move (1997) [WebDNA] unix timestamp in WebDNA (2009) Bug? (1997) Smart caching problems with 2.1b3? (1997)