3 replies [Last post]
enlighten_me's picture
Offline
Joined: 04/25/2008
Juice: 83
Was this information Helpful?

I want to tag a product with information outside of the description which wouldn't be displayed. This is applicable for an auto parts website that would have a year/make/model dropdown search.

So for example, a product has the title "2004-07 Honda Civic Headlights", the product would have tags 2004, 2005, 2006, 2007, Honda, and Civic so I can create a search on these tags.

Is there an existing field I can use? I looked at attributes, but it doesn't seem appropriate.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Product Tagging

You have a few options, primarily taxonomy or a CCK field. For example, you can easily setup a taxonomy vocabulary (category) for products called 'Year' that is optional and multiple select. Then add terms to that vocabulary for each year you need and select those on the product edit page.

enlighten_me's picture
Offline
Joined: 04/25/2008
Juice: 83
Re: Re: Product Tagging

Thanks, taxonomy seems like a good fit. I forgot I could have multiple categories. If I make the dropdown search and want to share it, is it better to have it added to the project or just post code in the forums?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Product Tagging

I guess it depends how you right it. Drupal is written so that pretty much any customization can be handled in an independent module. If you do this, it would be easy to share here as a contrib and on drupal.org as a project. However, if you only have time to make up a snippet, you should probably still try to post it in the contrib section so folks can find it later. Smiling