Technical Blog

Zyxware default image4
| 1 min read
Are you looking for a way manipulate dom elements using javascript based on some values from PHP, then this article is for you. We had recently worked in a Drupal 6 site having the same scenario. Our requirement was to enable some checkboxes using javascript based on the values of some variables available in the backend, This was accomplished using Drupal.settings
Zyxware default image4
| 3 min read
The last version of Drupal 5 was released on Aug 11, 2010 and the maintenance of Drupal 5 was stopped on Jan 5, 2011. The current stable branch of Drupal (as of March 2013) is Drupal 7 and the previous version Drupal 6 will be maintained till the release of Drupal 8 which is expected to happen towards the end of 2013 or early 2014. Drupal 7 will be maintained till the release of Drupal 9 which should happen probably in 2015.
Zyxware default image2
| 3 min read
Blocks in Drupal can be assigned to regions in specified pages. Two options which are already in Drupal 7's block configuration page are: All pages except those listed Only the listed pages And if you have enabled the PHP filter module, you may find another option: Pages on which this PHP code returns TRUE (experts only) In this article,I am going to explain to you, how you can display a block on pages based on the value returned by PHP code.
Zyxware default image1
| 4 min read
Coupons are used to redeem discounts while purchasing products from a store. They are mainly used for sales promotion. Here we are considering a coupon to be set for our products in our Drupal / Ubercart store so as to enable us to provide rebate or financial discounts for our products. Coupons can be set for products as a product feature. These coupons will be emailed to the user after the checkout.
Zyxware default image3
| 4 min read
Nowadays we can easily access internet in different devices such as mobile, tablet etc. So its necessary to make a website compatible with popular devices like iPhone, iPad etc. In Drupal, we have a simple method to make a website adapt to different devices. In this method we can convert a normal theme to responsive theme easily. To get this we have to modify the .info file and add the media query stylesheets in .info file. We will also have to add the responsive style rules to the separate media query stylesheets
Zyxware default image1
| 3 min read
Social media sites like twitter and facebook are key tools in reaching out to large audiences almost real time. The key part about using these systems is their ability to broadcast real time news and updates. Tweeting content from a Drupal site as soon as a node / content is posted on the site is a good way to use Twitter. If you want to know how to post a published content on twitter in Drupal 7 then continue reading
Zyxware default image1
| 3 min read
Using Ubercart and the Drupal Rules modules, it is possible to alter the behavior of the Ubercart checkout process. We had came across a situation on one of our Drupal sites where we needed to add an additional feature during the checkout process. If you are faced with a similar scenario in your Drupal site with Ubercart then read on know how to create a custom Rule condition for the Ubercart module?
Zyxware default image4
| 4 min read
It is very good if we can create a pure CSS multilevel drop-down menu in Drupal. We can simply avoid adding additional modules or jQuery for the multilevel drop-down menus. As we had a requirement to create a multilevel drop-down menu without using jQuery, we created it in pure css. And it works well in different browsers. We created this menu as main menu for the header navigation part. And there is a region for the header part called "region-header" and it wrapped in a class called .header-wrapper. Also Drupal provides a class called 'menu' for ul. So we had to define the class-name along with the ul.
Zyxware default image2
| 4 min read
When focusuing on Drupal website development, user roles and permissions are an important way of controlling access to the site. This is more so important when there are multiple individuals besides the website owner who administers the site. Other people can be assigned certain 'roles' which define the kind of access that is to be granted. Basically in Drupal, the Site maintainer and Administrator roles are given all the available permissions and Drupal Administrator role receives all permissions throughout the lifespan of the site. This is not the case for other 'roles', where access within admin permissions and time limits only are granted to users linked to those roles.
Zyxware default image4
| 3 min read
A lot of clients come to us asking for running Drupal updates on their sites. However almost everybody asks for a fixed price estimate for the process. There is however a challenge in this because updates would mostly run without problems but you might run into a problem or two once in a while. We have a standard and safe process of running Drupal updates but the safe practices followed in the process would take considerably longer time than blindly running updates on the live site.
Zyxware default image3
| 3 min read
My requirement was to detect the mobile devices from the drupal backend and redirect the user to the assigned URL. For this we needed to identify whether the user was accessing the site from a mobile device. For this we had to check the user agent string and compare that with the most common mobile devices. Then depending upon the condition we redirect the user to the corresponding URL.