Its been a short break but here is the third part in our Create a site like Digg with no programming series, the first two have been two of our most popular posts so hopefully this third one will be well received. In part 1 we set up a basic site that mimics Digg, allowing users to submit stories and people to vote up an down the story, part 2 saw us expand this with a range of modules, taking the site in different directions. For part 3 we are going to discuss how to categories the site and develop a taxonomy system. If you visit Digg or similar sites you will see that it is divided into categories, this helps to organize submissions and allows people to find information quickly. Drupal has a very powerful method of creating categories called taxonomies, which put simply provides a range of ways to classify your content.
The taxonomy module is one of the most popular features because users often want to create categories to organize content by type. Users also use categories to help in site navigation. The taxonomy module can automatically classify new content, which is very useful for organizing content on-the-fly. A simple example would be organizing a list of music reviews by musical genre.
Drupal handbook The taxonomy module is by default in all version of Drupal 4.7 but might not be enabled, to enable it go to: administer->modules and tick the enabled to the right of taxonomy module and save the configuration once enabled it can be administered from: administer -> categories from here you can create categories and sub categories. The taxonomy module has its own vocabulary (forgive the pun) which should be explained before we begin.
- vocabulary - a grouping of categories
- terms - categories within the vocabulary
- free tagging - a method of allowing users to categories through folksonomies or tagging similar to del.icio.us tags
Lets create a simple category system, go to administer -> categories and add vocabulary Start by giving your category group a name, I tend to use cat or tags try to keep it short you will see why in a minute. You can fill in the description and help text as you wish, under types choose weblinks and under hierarchical choose multiple and finally make it required. You now have a base for your categories, the next things is to add categories in this case taxonomy module calls this terms. to do this simply add terms, if you want to have hierarchical categories then choose the top levels first and add them to the root under parents, give the term a name and then save. Repeat for all your terms. Thats it your done, no seriously you are done, go to create new content and add a new weblink you will see it has a list of categories. Once you have added a weblink to a category you have another way to see this via the term in the URL www.example.com/vocabulary/term so for example it could be www.example.com/cat/seo for example this would list all the weblinks in the category SEO. Now this mimics Digg way to categories things but if you wanted to go down the del.icio.us method then when creating vocabulary choose free tagging, you will not need to add terms as the user adds them. So thats it for categories, they automatically add rss to vocabulary lists.








Interesting read, do you have a ‘demo’ or example site setup?
Just what I was looking for. Great article.
I have no interest in making a Digg clone, but I also would have liked to see a demo/example site to see how well it works, even if it doesn’t have any images…
not developed by us but you can see it in action http://www.accessibility101.org.uk/vote/
We are building out a demo of the site at http://yasvs.com following the instructions here. We are totally in beta, but if you want to take a look at the instructions in action, go there.
Hi Dan I actually found your demo before noticing your comment glad it worked for you!
Actually if down the bottom of http://yasvs.com it says ‘Powered by Pligg’. I would really like to see some more examples of drupal ‘digg’ style sites.
yasvs is a test site, it would appear they have moved on, more and more sites are poping up with voting capability for Drupal, we are busyb writing an updated version to this thread (with example site) but the accessibility site above is still using Drupal
i’d be very happy to see an updated version of this tutorial…and an example site… thanks guys!
I have implemented your tut with drupal 5.3. They go fine. But how do I add bury, share and discussion links? You can see how it works here. Great tuts. Thanks
Oops, the here link doesn’t work. just click my name or go to http://blogid.net/blogidit
Responses to this post: