Browse by content type?

mattgilbert - March 18, 2009 - 02:51

I was using Taxonomy to organize content into sections, but then I realized the content types of each section were unique (with different fields needed for each in CCK). So, if there is a way to browse by content type then that Taxonomy vocabulary is unnecessary in my case. But is there a way to browse by content type?

Sure, use the views module,

nevets - March 18, 2009 - 03:39

Sure, use the views module, add simply views for a fast way to build views based on content type.

Or

cog.rusty - March 18, 2009 - 04:23

Or http://drupal.org/project/get_content_type if you are not using views for other purposes and you want just this one thing.

Actually I found a very easy

mattgilbert - March 18, 2009 - 05:03

Actually I found a very easy solution: Use Taxonomy Defaults so each content type is given the corresponding term:

http://drupal.org/project/taxonomy_defaults

That along with hiding the input selector with css so no one changes those terms solved my problem.

Thanks for the suggestions

If you prefer

cog.rusty - March 18, 2009 - 05:10

If you prefer taxonomy_defaults, another way to hide the input selector is to edit your vocabulary and disable your content types. The taxonomy_defaults module won't care.

ah that's much cleaner. thank

mattgilbert - March 18, 2009 - 05:18

ah that's much cleaner. thank you.

 
 

Drupal is a registered trademark of Dries Buytaert.