How to create categories in blogs with Drupal 7

Hi all, more than one will have spent hours trying to do this since the new Drupal brought some changes with it that no longer allows us to do this in a easy and direct way as it did the Drupal 6, here are the steps required to do this and accomplish on the page that you are managing, it look with a neat and elegant form.

Create categories

  1. Go to “structure”
  2. We enter in “content type”
  3. Select “manage fields” of blog entries
  4. Add a new field, the type of data to be stored term_reference: taxonomy_Tags, if it is on the list of existing fields, if not create a new one.

NOTE: If we created new one, we could name it field_blog

  1. In the tag name we put: categories and in “Form element to edit the data” we select “Autocomplete term widget (tagging)”

This is ready for a side; now all blogs have one or more categories if users specify one or more separated by comma.

Grouping the categories and do that the users find them easily?

Create a new menu and we call it categories, then we create menus with links to those categories, to achieve this:

  1. Open in a separate window and start session in our drupal
  2. We headed back to “structure”
  3. We entered the section of “taxonomy”
  4. We entered on vocabulary list of terms “Tags”
  5. Select the first taxonomy and take us to all the blogs post in this category
  6. Copy the url of the search result
  7. In the previous window create a new menu in categories with the name of the category you wish linker
  8. Menu father <catagories> and we copy the url above, and so on until you have created a menu for each category

The menu already exists, now we must show it

  1. We return to “structure”
  2. We went into “blocks”
  3. In the list of blocks “Disabled”, we go into the settings of menu “categories”
  4. We put a title to the menu so that users know what is, in this case is: Categories
  5. In the configuration of “region” of our page, we select in which part we want the block appears, in my case I put it in the second sidebar
  6. And finally select the pages you want the block appears, in this case I select “All pages except those listed”, so the categories can be seen in all the blog entries in all categories but not in the pages that are unrelated to this content

NOTE: If a user makes an entry with a new category, the administrator must create you a new access in the menu of categories since this step, as opposed to the creation of categories, is not automatic.

Hope you like and will be helpful for you

Comments are closed.