Hi, i've just installed drupal and can't figure out how to categorize content. Would be grateful for any help.

I have 2 content types - "video" and "articles".

I need to have 2 categories - "health" and "food".

So, I see it like that:

I add 2 articles to the "health" section, they should have a path like mysite.com/health/1/ and mysite.com/health/2/

and when I go to mysite.com/health/ I get a list of all articles in this category.

Is it even possible?

Comments

cog.rusty’s picture

It is possible. Taxonomy and paths are two different things which you must address separately.

Taxonomy:
Create a "Topics" vocabulary, make it apply to your 2 content types, and add your topics in it as terms (categories). Then, you can get a list of all articles in a category by browsing to taxonomy/term/{category-id} (ugly, but it can change)

Paths:
Enable the path module. Now, each time you create or edit an article you will be able to give it a path alias (like "health/2" or "health/short-title") manually. Additionally, an "URL alias" menu item will appear the admin menu, where you can manually alias for example "taxonomy/term/5" (or whatever is your category id) to "health".

More path options:
You can install the http://drupal.org/project/pathauto module (a very popular one), and set up some rules to create path aliases automatically.

You can install the http://drupal.org/project/globalredirect module, so that the initial "ugly" paths always redirect to the aliases.

opaganda’s picture

Thanx a lot! Very clear and helpful!