Need to dynamically choose Vocabulary based on Dropdown selection in Create Content

herculesksp - January 7, 2009 - 06:26

Hi,

I am using drupal on my site to create various types of content. Initially, I created different content types for each type of content. I also created different vocabularies for each content type and associated with the corresponding content type, so that the terms for each content type are well seperated.

However, I find it very inconvenient since I have so many content types, that creating pages and also setting permissions becomes too complex. For example, I might have an article type 'Reviews' and I might want to write reviews on various topics like PC, games, laptops, movies, restaurants etc etc... and if I feel like it, I might start off a new type of review. Now if I create a content type for each, it becomes too complex. For each type, I have various tags that I want to use, so I have separate vocabs for each. All this is really getting too complex and clumsy.

So, I used CCK to create a new content type - Review, and I have a text-field dropdown which lets me select which review topic is it. So now I have only one content type and it is much easier on the eye and to maintain. But what do I do about the vocabs now? When I select PC in the dropdown, then I want the PC vocab terms to show up for selection(or free tagging). This should change dynamically if I change the dropdown value.

Can I do this using views or some other module? If yes, then I would appreciate some snippets or links where I can look for informations about the same.

The reason why I am making categorization like this is that I want to even theme the pages different based on content type and further based on the vocabulary(or parent taxonomy term) used. Doing it this way will let me use views to create the content pages that I want and also theme them according to my needs.

Any help will be much appreciated. Thanks in advance.

Best Regards,
Prashanth.

 
 

Drupal is a registered trademark of Dries Buytaert.