Get a free quote now

Drupal

Taxonomy Image: 

[Drupal] How to create regions for a Drupal websites?

February 12, 2015 - 09:46

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.

[Drupal] How to create a field formatter programmatically in Drupal sites

February 11, 2015 - 18:53

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

[Drupal] How to Install New Themes for your Drupal website

February 11, 2015 - 18:48

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.

[Drupal] How can we test a Drupal local site in multiple machines by creating virtual host

February 11, 2015 - 18:41

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.

How to configure Authorize.net ARB in Drupal commerce

Authorize.net is payment gateway service allowing users to accept credit cards or other payment mode through websites. It allows users to manage transactions, manage payments on the basis of low-cost without any extra transaction fees.
Authorize.net deals with many transactions through payment gateway from simple to complex e-commerce products and reports. The only need by a customer to choose an appropriate API suiting your business and transactions and thereby directly creating an account with Authorize.net.
Authorize.Net ARB is a type of payment API where users can opt recurring billing systems to their product subscriptions. The users opting ARB payments mode would be charged the first amount of payment the next day after they subscribe on website, then the recurring billing will start after the first membership period.

[Drupal] How to remove undesired local task tabs from pages programmatically

February 10, 2015 - 18:48

In Drupal, some modules add tabs to pages and these tabs(Primary tabs) are shown in the top of each page for authenticated users. Some of these tabs are not needed for some roles. There are cases where we want to hide such tabs, like - Bookmarks, File browser, orders etc., from primary tabs for roles other than administrator. We can remove these undesired tabs from primary tabs programmatically.

[Drupal] How to save custom additions to the user object when a new user account is created in Drupal

February 10, 2015 - 18:46

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.

[Drupal] How to create a colorize theme by using Drupal 7 color module

February 10, 2015 - 18:45

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.

[Drupal] How can we add translation to Drupal 7 site using translation module?

February 10, 2015 - 18:42

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.

[Drupal] How can we list contents of a particular vocabulary from the vocabularies lists

February 09, 2015 - 18:45

Consider that there is more than one vocabularies in your drupal website and we have to list them with the respective contents. Consider the situation where you have to list only the content of a particular vocabulary and not all the vocabularies. If you want to list the contents of a particular vocabulary then you can use the following code for doing that.

[Drupal] How to update jQuery versions in your Drupal site?

February 09, 2015 - 18:44

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.

[Drupal] How to wrap the comments in a collapsible fieldset?

February 09, 2015 - 18:43

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.

[Drupal] How to add an SQL query to the global footer in Views without directly placing the PHP code in view?

February 09, 2015 - 18:26

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.

[Drupal] How to get vocabulary id from vocabulary name in Drupal 6

February 07, 2015 - 19:01

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.

[Drupal] How to add relationship between custom and Users tables in Drupal views

February 07, 2015 - 10:52

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

Pages