Drupal Technical

Zyxware default image4
| 4 min read
If you want to display large amount of content in a page on your site then using text scrollers would be one of the best methods. For example if you have lot of news and events to be displayed in a site, then using text scroller will allow the user to scroll over all the data.This can be easily implemented using views and jcarousel module. Read on to know how to display contents as text scroller in Drupal sites?.
Zyxware default image1
| 3 min read
When we try to theme a Drupal website certain case we need to create particular region in the Drupal website. Adding region for a Drupal website is not a hard task, even a developer first creating a Drupal website can create a region. In order to add regions inside a Drupal website we only need to add a few lines extra for that. Below there are three version of drupal for the drupal 6 and 7 version creating the region is same but for the Drupal 5 version it is slightly different.
Zyxware default image1
| 3 min read
In Drupal, if you have a content type and you want to change the output of any field to something else you can use field formatter with field API. This enables a display settings for any fields in a content type and where you can manage the output as you wish. This article shares how to create a field formatter for your Drupal content types. There are some contributed modules for custom field formatters. But if you really want to create or learn about creating a field formatter programmatically, just go through this article
Zyxware default image3
| 3 min read
If we create a drupal website and if we are trying to add a new theme for the website from the themes available what to do ? The first thing is to find a suitable theme for the website as per the requirement of the site. Before searching for a new theme we need to do certains things, try to sketch out the general layout of the new site. There are few thing we need to give some importance.
Zyxware default image2
| 4 min read
When your trying to implement a new feature(say a module or theme) in your local machine for a website, first thing you have to test is the compatability in all browsers. If you want to test your feature in multiple machines, its not always easy to download and setup on each machine. In my case, I am using Ubuntu and I have to always test compatability of a site in IE browsers which cannot be installed in ubuntu. So what I did here is created a virtual host for my site in my local machine and using my ip address I created a virtual host in other machines so that I could easily access all my sites in my local machine from diffrent machines.
Zyxware default image1
| 2 min read
This article explains how to programmatically, save custom additions to the user object when a new user account is created in Drupal. We can understand this with an example. Say, we want to create a default album with every newly created user, then we can use the following to save the custom additions. Similarly any of your additions can be done after referring the following.
Zyxware default image4
| 3 min read
This is an article about how you can create a custom color switching theme with the help of Drupal 7 color module. Color module is a Drupal core module comes with Drupal and you can use this module to colorize your theme. Garland is a Drupal theme which uses color module to colorize its various content. If you want to know more about how to create a colorized theme by using Drupal 7 color module read on.
Zyxware default image4
| 3 min read
Consider you are creating a drupal website with multiple languages. We don't have to create two different sites for that. This can be achieved in the same site by using a module. In drupal for adding translations to the site we can use the Entity Translation Module. If we want to translate the title and other such fields to some other language then we can use the Title module. The different steps that has to be followed to add translation to Drupal 7 site using translation module are listed below.
Zyxware default image4
| 2 min read
In Drupal I have faced a problem while using . Some jQuery functions are available only in some versions. For example thejQuery pluginsre is jQuery function on It is added in the version 1.7 of jQuery only. So while adding this function to my site I have faced the problem with the plugin because the version of jQuery available in my site was 1.5.
Zyxware default image3
| 2 min read
Comment module in Drupal makes it possible for users to comment on the nodes we create. And also the users get a chance to discuss on the topic as well. In this article I try to demonstrate how the comments for a node can be wrapped inside a fieldset. Isn't it a good choice? If you haven't done it, now will be a good time to do so.
Zyxware default image4
| 2 min read
Drupal 7 Views provides an option to add php to the Views footer in a View page. The option is called Global PHP. It allows you to add PHP code to views, to modify its output without adding code in a separate php file. However this option shoud be used with caution as a php error here can bring down the whole site and it would be difficult to detect. There is an alternative though. Read on to know how to add an SQL query to the global footer in Views without directly placing the PHP code in a view.
Zyxware default image2
| 2 min read
I have a vocabulary in my drupal project and I want to make the vocabulary as a single select in one of my content types. I can do it in the form_alter. But to select the vocabulary item in the form_alter, I need its vocabulary-id. I dont want to hard code vocabulary-id in my code, so I searched for a drupal core function to get the vocabulary id from its name. In drupal 7 there is a function to get the entire vocabulary object from its machine name. But in drupal 6 there is no core function to get vocabulary id from its name. So I created a custom function to get the vocabulary id from its name. See the following function I programmed, to get the vocabulary id from its name.
Zyxware default image1
| 3 min read
Sometimes working on Drupal Views is very intimidating as this a very complex module serving a variety of needs. No wonder it is one of top Drupal modules. Once I had a particularly difficult time trying to figure out how to get a relationship right in Views by trying to get the user name from the users table using a userid from a field in my custom table. However I managed to figure out the soution by reading the query generated by Views. Read on to know how to add a relationship between a custom table and Users table in Views below