Many Faces of TimRSS Icon

Create a site like Digg – Part3

Hi there, this post was originally on Venture Skills blog which is now defunct, but I have moved it over here to save it from vanishing forever. However I haven't done anything other then copy and paste so their maybe formatting or broken links. Also note comments will be switched off by default on these posts

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.

Quickly Linking?

If you want to link to this post quickly please use: http://tnash.eu/t415

alternativly use one of these services Tiny URL | bit.ly |is.gd

RSS feed

11 Comments

Comment by Ash
2007-03-26 13:03:58
Ash avatar

Interesting read, do you have a ‘demo’ or example site setup?

 
Comment by Neil
2007-04-25 22:35:05
Neil avatar

Just what I was looking for. Great article.

 
Comment by Weston Campbell
2007-05-06 22:44:10
Weston Campbell avatar

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…

 
Comment by Venture Skills Team
2007-05-06 22:50:01
Venture Skills Team avatar

not developed by us but you can see it in action http://www.accessibility101.org.uk/vote/

 
Comment by Dan
2007-05-15 21:24:11
Dan avatar

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.

 
Comment by Venture Skills Team
2007-05-16 17:38:49
Venture Skills Team avatar

Hi Dan I actually found your demo before noticing your comment glad it worked for you!

 
Comment by Daniel B
2007-06-01 03:19:48
Daniel B avatar

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.

 
Comment by Venture Skills Team
2007-06-01 08:20:00
Venture Skills Team avatar

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 :)

 
Comment by omnyx
2007-09-06 16:05:25
omnyx avatar

i’d be very happy to see an updated version of this tutorial…and an example site… thanks guys!

 
Comment by blogidator
2007-11-25 16:14:24
blogidator avatar

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

 
Comment by blogidator
2007-11-25 16:17:36
blogidator avatar

Oops, the here link doesn’t work. just click my name or go to http://blogid.net/blogidit

 

Responses to this post:

Sorry, the comment form is closed at this time.

Tim Nash consulting