Clean Taxonomy In Drupal

cleantaxonomy1.jpg When building large dynamic drupal websites, it is possible to find yourself with a problem regarding a lot of empty terms.

This causes a navigation headache for any user as they will no doubt drill down the categories and find masses of empty pages. This is also not very good for SEO, as any authority your website has becomes very diluted and wasted on empty terms.

Our problem with oddsbet was that we were publishing live events that come and go from all round the world. So we were finding ourselves with literally thousands of empty terms very quickly.

This cricket match between england and australia was out of date and so was the term, as were hundreds of other terms in other categories.

cleantaxonomy2.jpg

Jonny P came up with a solution, CleanTaxonomy is a small helper module that removes all the old dead terms in a few clicks.

After installing the module, go to Categories in your admin and you will see a Clean Taxonomy link as shown with red lines in this screengrab.

cleantaxonomy3.jpg
Click the Clean Taxonomy link.

Click the Purge empty items link.

In a few seconds all the empty terms are removed from database.

The website has a clean and efficient navigation once again.

cleantaxonomy4.jpg