Drupal 7: Display Taxonomy Menu on your website.


If you are running a Drupal 7 based website, many a times you might have felt a need to categorize your content and display a menu showing a list of categories.

Unfortunately, it cannot be done just using the core modules of Drupal 7.

So if you want to give your viewers a good navigation across your content, execute the following steps:

1)  Login as 'Administrator' into your Drupal 7 website.
2)  Create a proper vocabulary that is required for categorizing the content.
    a. Go to link: Structure » Taxonomy
    b.	Add terms and sub terms as per requirement.
3)  Convert Vocabulary to a 'Required' field by editing the relevant content type.
    a.	Go to link: Structure » Content types » Article » Manage fields
    b.	Check the checkbox which says 'Required Field'.
4)  Ensure that all existing content has been categorized in at least 1 category.
    a.	For general content which cannot be categorized in any category, add a general term called 'Miscellaneous' in your vocabulary.
5)  Set the 'Vocabulary Widget Type' to 'Select List'.
    a.	Go to link: Structure » Content types » Article » Manage fields
    b.	Select tab 'Widget Type'.
    c.	Select option 'Select list' in drop-down 'Widget type'.
6)  Take a backup your existing 'Database'.
    a.	By exporting data in an SQL file.
7)  Install following contributed modules: 
[Just download, extract and keep the folders of the modules in 'modules' directory of Drupal 7]
    a.	Ctools (Chaos Tools)
    b.	Pathauto
    c.	Taxonomy Breadcrumb
    d.	Token
    e.	Taxonomy Menu
    f.	Views
8)  Enable all the above contributed modules from link: Modules.
[Note: Just enable 'Chaos tools' module out of the entire Ctools suite]
9)  Create a new menu which will hold the list of all categories.
    a.	Go to link: Home » Administration » Structure » Menus » Add Menu.
    b.	Give a suitable Title (Ex. Categories) and Description to your new menu.
10) Set the position of that newly created menu from the Blocks.
    a.	Go to link: Structure » Blocks
    b.	Select a specific region for your block to be displayed and Save the configuration.
11) Edit your vocabulary in taxonomy to link it to the menu that was just created.
    a.	Go to link: Structure » Taxonomy » Edit Vocabulary.
    b.	In the 'Menu Location' drop-down, select the name of the menu which you just created.
12) Build appropriate URL aliases [Delete and Rebuild].
    a.	Go to link: Configuration » URL Aliases.
    b.	Go to tab 'Delete Aliases'.
    c.	Select the checkbox 'All Aliases'.
    d.	Click on button 'Delete Aliases Now'.
    e.	Go to tab 'Bulk Update'.
    f.	Select the checkboxes 'Content Paths', 'Taxonomy term paths', 'User paths'.
    g.	Click on button 'Update'.
13) Change the configuration so that content with the child terms are automatically displayed when parent term is selected.
    a.	Go to link: Structure » Views » Taxonomy Term (Enable) » Taxonomy Term (Edit) » Advanced » Content: Has taxonomy term ID (with depth).
    b.	Set the value of 'Depth field' to '1'.
    c.	Click on the button 'Apply (All Displays)' to apply these changes.
    d.	Click on the button 'Save' to save the changes permanently.