Jan 26 2009

Errors coming after migrating to drupal?

Tag: CMSvish @ 3:06 pm

I got some weird “Duplicate Entry” Exceptions on creating content after doing a database migration to Drupal. It comes after registration if you added few users to db directly, or will come on creating new content if you added nodes directly to db.

Actually there is no AUTO_INCREMENT set for db tables in drupal, instead there is a ’sequences’ table. So make sure you make appropiate changes to numerical values after migration.

BTW, if you came here looking for how to migrate to Drupal from other CMS (wordpress, geeklog etc.. ) read these articles on drupal handbook.

Tags: CMS, drupal

Dec 08 2007

OpenSearch plugin for IE/FF

Tag: CMS, widget/pluginsvish @ 4:34 pm

This plugn is basically a XML file, that use the OpenSearch description syntax which is compatible with IE 7 and Firefox. Here is a basic template which you can use for making this XML file :

Code:
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
    <ShortName>engineName</ShortName>
    <Description>engineDescription</Description>
    <InputEncoding>inputEncoding</InputEncoding>
    <Image width="16" height="16">data:image/x-icon;base64,imageData</Image>
    <Url type="text/html" method="method" template="searchURL">
    <Param name="paramName1" value="paramValue1"/>
    ...
    <Param name="paramNameN" value="paramValueN"/>
    </Url>
    <Url type="application/x-suggestions+json" template="suggestionURL"/>
    <moz:SearchForm>searchFormURL</moz:SearchForm>
</OpenSearchDescription>

You can find more about it over here. You can also advertise your plugin and install it programmatically.

Tags: opensearch

Nov 05 2007

Drupal vs Joomla

Tag: CMSvish @ 11:49 am

I’ve recently seen a lot of people trying to figure out which CMS to use. Most of them are generally stuck between two widely used CMS – Joomla & Drupal. This blog is on Wordpress, which can be used as a CMS too :) , but I’ve tried installing and playing around with both Joomla & Drupal and found a few things I would like to share :

  • Terminology used in Drupal is a bit complicated. But once you have read these docs completely, you will start loving the flexibility you get with Drupal. Joomla on the other hand is quite easy to understand initially, but it isn’t as flexible as Drupal.
  • You get a lot of good modules in both Drupal and Joomla, but most of nice modules in Joomla will cost you money.

Performance + cost + popularity comparison

Though Joomla has gained more popularity over Drupal because of its easy deployment and easy editing. Drupal definitely wins over performance and costs. Drupal always attempts to send compressed pages, on the other hand Joomla won’t compress pages unless this option is explicitly turned on. You can see results of some tests conducted here, here, and here.

Overall, I would say that Drupal is difficult to customize by a non-programmer as compared to Joomla, which can be easily customized by a web-savvy user. However, you should go for drupal if you really want a powerful CMS-driven site.

You might be intrested in reading these as well.

Tags: CMS, drupal, joomla, php