Get a free quote now

Drupal Planet

How to mix public and private folders in a Drupal installation | Creating a private folder in Drupal

June 17, 2011 - 11:46

By default, Drupal serves all its files publicly via http. This means that any unauthorized user can directly access all the files through a browser by entering its path. This is also true for files which have permissions for them. The solution provided by Drupal, which is to make the entire file system private is resource intensive and can bring down the server. However there is another less costly workaround to this issue. Read on to find out more.

How to delete nodes in bulk programmatically from a drupal site?

March 05, 2010 - 02:19

What do you do when you want to delete multiple nodes from a drupal site? You go to admin » content and then delete nodes one by one? No. You go to PhpMyadmin and delete the nodes from the node table?. Absolutely not (don't even think about it). There are a few solutions. There is the Views Bulk Operations module. But there is an easy hack to do this or for that matter bulk node operations.

Customize RSS Feeds generated by Views2 in Drupal 6

January 15, 2010 - 02:12

The Views module in Drupal provides a Feed display that will allow for site owners to publish the content on their sites as RSS feeds. However, unlike a page or block display, the feed display does not allow for addition of custom tags inside the feed using the Views administration UI. There is however a way to add custom tags, attributes and values into the generated feed using hook_nodeapi.

Automatically tweet your latest articles and shortened URLs from Drupal

January 13, 2010 - 19:23

If you use drupal as a blogging platform you would want to auto tweet your new posts on to twitter. Twitter and Shorten module provides you with the basic framework required to do this and all you will need to get it working is to configure these modules. There is also a small patch that has to be applied to the twitter module (until the patch goes into the CVS) to allow the use of shortened URLs in the tweet.

Programmatically set a Views filter in Drupal 6 and Views 2

October 14, 2009 - 05:41

Views is one of the most complex of all Drupal modules and one of the most useful of all Drupal modules. The only downside is that, since it is very complex, not too many people have been able to contribute to the documentation of the module. If you search Google for finding out how to programmatically set a filter in Views2 you probably wouldn't find any help. Here is how you do it.

Export RSS feeds to remote ftp sites from your Drupal website using Views

October 14, 2009 - 05:14

Feed API provides a powerful means of importing feeds from other sites directly into your Drupal site. What if you want to export your feed as an XML file to a content distributor who wants it on his FTP site? There is of course the traditional approach of using curl to read your feed URL and dump the text as files on to the ftp site. There is not much control that you have over this process. However doing this via Drupal Views will give you fine grained control over the process

Change the page title of a view in Drupal + Views 2 using Argument Handling Code

September 10, 2009 - 07:05

If you create anything other than a very small site using Drupal you will end up using Views and CCK, two of the most important contributed modules in Drupal. Views allow users to dynamically create different presentation of tabular data from the database. However this also necessitates dynamic page titles for pages using views.

Solved - Warning: Unknown column 'serialized' in 'field list' - error while upgrading Drupal

July 05, 2009 - 02:28
When you upgrade from Drupal 5 to Drupal 6 you might run into the following error if the upgrade was not properly done

Warning: Unknown column 'serialized' in 'field list' query: SELECT data, created, headers, expire, serialized FROM cache WHERE cid = 'variables' in [drupal 6 "/includes/database.mysqli.inc" file] on line 128

There could be several reasons why the error happened but there is a simple solution to solving this problem.

Why should you not hack core in Drupal?

July 03, 2009 - 03:24

When things don't work the way you want it to and all it takes is a hack in the core, people sometimes hack the core. You might get the feature working the way you wanted it to but by doing that you would effectively be crippling your drupal installation. There are three main reasons why you should not hack core in Drupal.

Configuring 301 redirect using Apache and htaccess for SEO in Drupal

January 16, 2008 - 18:32

Most webmasters do not realize this, but a lot of the content on lot of websites can be accessed from multiple URLs. A simple example would be where www.example.com and example.com leads to the same page. This is a fatal mistake in Search Engine Optimization and search engines penalize you for duplicate content. The correct configuration would be where the above two urls will lead you to the same page but example.com will redirect you to www.example.com with a 301 (Moved permanently) status which will not result in search engines penalizing the page. It is very easy to configure 301 redirects using Apache .htaccess file and the process is the same for a Drupal installation also.