This article describes a checklist on some of the important data to be collected before migration and how to collect the data. This may seem like a trivial task but just like it is important to have a manual for an electronic device before you take it apart and put it back, it is important to have a technical manual of the site. If it is a complex site, with a lot of data, then this is mandatory.
Drupal 6
Getting a block in front page or in all other pages is easy ie, we only need to print that variable in our template files namely page-front.tpl.php or in page.tpl.php.In certain cases we may need to print a block in certain nodes. This can be done by the following code :
If Config server firewall(CSF) is installed on your server then, you can edit the firewall configurations from the command line using the following commands.
If you need to import users from the data given in a file in drupal 6, then user import module is helpful. Using this module, we can upload the file in csv format, which contains user details and select the details from the uploaded file using the user import module.
If you own/manage an online store using Drupal and Ubercart, you would have encountered situations where you wished to set different prices for different options of a product attribute in ubercart. For example, if your store sells books and you want to add extra price for hardbound editions, here's how you can do it. Read on to know how to set this up in Ubercart
In this article, I would explain how we can add a new set of categories to an already existing node by using existing taxonomy terms as reference id in Drupal 6. In order to achieve this, the following functions can be used: taxonomy_get_parents_all(), taxonomy_get_term(), node_save().
One of our Drupal clients required us to cancel the recurring fee order option which was pre-configured in Ubercart using Ubercart recurring fee module in their Drupal 6 site. If you are a Drupal user facing the same situation with Ubercart in your Drupal site and would like to know how to cancel the recurring fee order then read on to find out the solution.
Consider a case where you want to enter regular expression and validate it. Here I will show you how to write a validation function. For example consider YOURMODULE_admin_settings_validate function
In my example I am using a form and a submit button.From $form_state array you can get the input value after submit. You need this value to match with the string. See the code below.
In this article I am going to tell you how to redirect anonymous users to a login form on 403 access denied pages in Drupal. There are some contributed module that provides you this feature but, if you really want to create a custom one for your site just try this. Here I will show you a PHP snippet that redirecting to login page for anonymous users on access denied.
I have a few images in a folder on a Drupal site I was recently working on. The Drupal site also had a content type that contained a title and an image field and I had a requirement to create a node for each of these images. Read on to find out how to add a file to the image field of a node programmatically in Drupal 6.
One of our Drupal 6 clients wanted us to implement a feature where nodes belonging to a particular content type where to to be posted to their official twitter feed as soon as they were published. We had done a feature on How to automattically tweet published content on twitter from a Drupal 7 site. Read on to know how to do it in Drupal 6.
Drupal 8 will be released probably by Dec 2013 or so and when that happens maintenance of Durpal 6 will be stopped. Contributed modules for Drupal will probably take a while more before they have Drupal 8 versions. Until popular contributed modules have stable Drupal 8 versions it would probably be safer to start small projects using Drupal 7.
In a Wordpress we can assign categories to each post and have listing of posts in each categories. Sometimes we need to list the contents of a particular category as the home page. In Wordpress we can make a static page as the home page under the settings tab, i.e. Settings » Reading settings. There you can make a static page as home page but not the contents in a category.
Drupal 6 will be maintained till the release of Drupal 8. Drupal 8 release is expected to happen towards the end of 2013. The current stable branch Drupal 7 will be maintained till the release of Drupal 9 (probably 2015). If you are running a production site on Drupal 6 then you will probably have to start looking at upgrading the site by the end of this year.
Upgrading Drupal 6 to Drupal 7 is supposed to be a straightforward process but there are certain things you have to be careful about when you upgrade Drupal. The following list outlines the different steps you will have to follow to upgrade your non-mission-critical small Drupal site.
With Drupal 8 in the works a lot of Drupal 6 sites are currently upgrading to Drupal 7. We get quite a few queries on Drupal upgrades and almost everybody asks for a fixed price estimate for the process. In theory Drupal 6 to Drupal 7 upgrade process is an automated process (except for the upgrade of theme and custom modules) and all you have to do is to take the site through a set of standard steps for the upgrade. However upgrades don't always work like that.
Multisite concept allow us to run multiple sites in single drupal core installation . Each site in the multisite will have it's own modules and themes as well as files folders. Setting up multiple sites like this will save on patch administration, permissions administration, setting up APC etc. Follow the below steps for running multiple sites in single drupal installation.
One of the errors we come across in a Drupal 6 installation is "htmlspecialchars() expects parameter 1 to be string, array given in /includes/bootstrap.inc on line 860". This is an issue with the Internationalization and Taxonomy translation modules. This issue can be fixed by adding a line in the bootstrap.inc file. If you want to know how to solve the warning, continue reading.
Drupal uses a variety of caching systems to improve the site performance. However in certain scenarios they may not be sufficient and more powerful external caching mechanisms are required to improve the performance. One such mechanism is memcached. If you want to know how to install memcached in CentOs then read on to know the steps.
A Drupal user using Drupal Organic Groups wanted to know how to show the block on every page that belongs to Organic Groups. Presently the block was only visible in the start page of the blocks. If you are facing the same question in your Drupal site with Drupal organic groups then read on to find out the solution.