Sunday, 13 June 2010 07:21

Integrating Disqus with K2

Written by

One of the biggest weaknesses in the Joomla! content management system is its lack of built-in commenting. Where platforms like Wordpress are forging ahead with powerhouse new features aimed at serious content generation, Joomla! is still mired in its Mambo legacy structure. It is not, out of the box, a blogging platform.

While the shift to core Joomla! embracing MVC has allowed designers to leave behind the uniform look of previous iterations of the platform, Joomla! is still first and foremost a CMS, not a blogging platform.

There have been a raft of commenting solutions available for Joomla!, however I am increasingly of the opinion that without some level of social integration, commenting wastes the potential of wider promotion and engagement. Further, I am absolutely sick to death of having to create new user accounts at every site I visit.

If a site offers single-sign-on through social services I breathe a sigh of relief.

So when a commenting system came along that offered both single-sign-on and social integration, I was utterly thrilled.

That system is Disqus.

JoomlaWorks offer a nice Disqus plugin for Joomla!, but it doesn't integrate with K2 (their content construction) kit very well. I love K2 unashamedly. It allows me look and feel customisation that Joomla itself can't easily match. I can also create multiple templates per view, making it a much simpler publishing option for users who just need to upload one image and K2 will resize it for each view and place it according to the template.

A plugin can't match the level of customisation that I require, so I prefer to integrate the Disqus code manually. Here's how: