Drupal Technical

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
| 3 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.
Zyxware default image3
| 3 min read
In one of our recent projects we had to show a slider for a price range. The slider was to be used to show all products with prices between a minimum and a maximum. If we set filters in they will be shown as text boxes. For our project the client requirement was to show a slider above these text-boxes. See the screenshot. The JQuery UI has a good slider widget which will gives the graphical version of these range. We can use this widget with our views 'in between' clause.
Zyxware default image4
| 2 min read
When you want to dynamically create content from some raw data in Drupal, you might have to create a node programmatically. This comes in handy when you want to use custom forms to collect user input and then create nodes using the the input collected. If you want to know how to programmatically create a node continue reading.
Zyxware default image2
| 2 min read
As the World wide web is starting to resemble the wild wild west, you have to ensure that your Drupal site is always up to date. If you are ignoring the security updates of Drupal, then you are simply making your Drupal site vulnerable to the worst enemy of all - Negligence. Updating a Drupal site requires time and effort which is why most people ignore it. Here is a quick way to update your Drupal site using Drush and Hacked module.
Zyxware default image1
| 2 min read
We were faced with a Sensitive Cookie Missing 'HTTPONLY' Attribute error in one of the more sophisticated Drupal applications we were developing. This error occurred when we were trying to get the Drupal application scrutinized for PCI Compliance. If you are faced with the same scenario in your Drupal then read on to find out the solution PCI is an industry standard designed to review organizations who handle sensitive credit card information to prevent Credit Card fraud and it is important to get your Drupal application scrutinized if it is to handle such information
Zyxware default image2
| 2 min read
Boost is a Drupal module which provides static page caching for anonymous users. Boost caches a page when a user first visits a page and the the succeeding users are given the cached version of the page. The biggest advantage of Boost is that it works well in shared hosting environments and it provides fresh content for logged in users. Read on to know how to configure Boost in a Drupal 7 website.
Zyxware default image1
| 2 min read
Some times we need to protect our site from public users and make it available only to selected number of users. For examply you might want to protect your alpha site from the public and from search engine bots. In such situations we protect our site with HTTP password. Follow the below steps for protecting your Drupal site with HTTP password. This was written for an Amazon AWS server but should work on most GNU/Linux servers.
Zyxware default image2
| 2 min read
If you are a Drupal developer you must have noticed that there is very little information on the web regarding how to create a custom token in a Drupal site. We needed to create a custom token for one of our Drupal clients. If you are facing a similar situation in your Drupal site and would like to know how to create a custom token in your Drupal 7 site and set a custom value for it then read on to know the complete solution