Drupal Development

[WEB/SOFTWARE TESTING CHECKLISTS] Comment Management Module in Drupal 7 - What are the Test Cases to be considered while testing the Comment Management module configuration on a Drupal 7 site?

Comment Management module helps a site owner to manage the posted comments on his website. Testing a Comment Management module involves a set of test cases and it is always helpful to keep a checklist for this. Here is something to help you out! Following are the test cases / checklists for Drupal 7 default Comment Management Module

[Drupal] How to send / mail out newly added comments for a node to a specified email address on a Drupal 6 site?

Replying to comments is an extremely good practice for bringing recurring traffic to your Drupal website as you are interacting with your visitors. If you can send those new comments to an email address, you can respond to them quicker since a late reply usually goes unnoticed. Normally in a Drupal 6 website, the admin user has to login to the website and moderate the comments which often leads to a significant delay in response time. Check out our instructions on how to send comments to an email address in a Drupal 6 website.

[Drupal] What is DTD and how should it be implemented in a Drupal website?

DTD stands for Document Type Declaration. We have been using this as the header in all HTML files since the very first day we started working on HTML. But have you ever wondered what it does or what can happen if doctype is not specified? Read on to know what is DTD and how it should be implemented in a Drupal website

[Drupal] Integrating memcache with Drupal - How to check whether memcache is enabled properly for the site?

Memcache is used for increasing the speed of dynamic web applications by loading the web page faster. Memcache is used to reduce the number of hits to the database by loading the page from the memory. Memcache works for all types of users (both anonymous and admin) since it caches data like sessions, forms, blocks etc in RAM.

Drupal Tips - How to theme the File Upload field in a WebForm using CSS and JavaScript?

The trick explained briefly

We are not actually going to theme the file upload field as it is presently nearly impossible to do that. Instead we are going to put an ordinary looking 'dummy' input text field over the file field. Next we proceed to make the 'original' file upload field invisible but accessible to the user via CSS. So when a user clicks on the dummy input text field they are actually clicking on the file upload field itself. To make it authentic we are going to copy the file path from the file upload field to the text input field via javascript.

How to delete all nodes of a particular content type in Drupal

Are you looking for an easy way to delete hundreds and thousands of nodes in your Drupal CMS? We all know how to delete it using the normal admin panel which forces us to select all and clicking the delete button again and again. If you are a lazy person then probably you don't like to waste your time to find some stupid script to delete all nodes.

A basic intro on how to manually migrate field data from old content_type_ Drupal 5 CCK tables to Drupal 7

When migrating from Drupal 5, the normal path would be to migrate everything (core/modules/themes) to the latest Drupal 5 versions, and then to the latest Drupal 6 versions, and then over to the Drupal 7 versions. How fortunate would have been the developers assigned the job if everything was as simple as that!

How to print a block inside a node on a Drupal 6 website

Blocks are regions on a Drupal website that show small but significant pieces of content. Blocks are an important component from the perspective of a Drupal website. Blocks are usually assigned to regions in a page and they are supposed to be printed on a page. However there are many instances where you might want to print a block within a content. It is not directly possible to assign a block to a region within content (node in Drupal speak) as you can do with a page. But as with everything in Drupal there is a way to do that.

Drupal Tips: The quick and dirty way to run Drupal site updates

Sometimes we get requests to update Drupal sites and get it done in less than 5 hours. If we take the Drupal update through the full fail-safe set of steps for Drupal updates we will never be able to complete updates in less than 5 hours on a site we don't maintain. For such sites when the cost of the site going down may not be too high for the site owner it might not be too big an issue if the update is run on a hit or miss approach. We normally do not recommend such an approach but this should work on most small sites without any issues.

Drupal Tips: How to update Drupal core and contributed modules in your Drupal site safely

Keeping the Drupal core and contributed modules up-to-date (at least on the security updates) is one of the essential steps for keeping a Drupal site safe and secure. Running updates of Drupal modules is usually a straightforward mechanism on a Drupal site that is done right. However what will you do if you do not know how things have been built? What will you do if some of the custom modules used are tied down to specific versions of some contributed module? What if there were custom changes on the site. Here is how you can run updates on a Drupal site almost completely safely.

Drupal Checklist - Information to be collected before you migrate your Drupal site from one server to another

When you want to move a Drupal site from one hosting server to another you have to ensure that the site works the same way on the new server as it used to work on the old server. There is no real fool proof way of doing this other than to meticulously document all the custom aspects associated with setting up the site and verifying it on the new server. The following is a checklist of information you have to collect before you move your Drupal site from one server to another.

Pages