Suppose if a Drupal login page has a Captcha to find whether the user is human or a bot. Using Selenium IDE we can automate all type of web elements such as link, check box, radio button etc. In case of Captcha, human interaction is a must.
While working on a report generating system, I wanted to display footer value that should reflect based on the date filter, added in the report. I thought of creating a block in the content region and manage the contents in the block. But when I went to know about header and footer options in views module, I decided to go for it. This article is on how to use header or footer in views pages.
XPATH stands for XML Path. In web-based application, XPATH is a unique address for each web object. XPath is mainly used to find an element in the web page. XPath helps to get address of the web element such as check box, radio button, link etc. To write XPATH for Dropdown, first of all we need to install Firebug in Mozilla Firefox browser. Firebug allow user to view the code behind the web page.
Navigation Menu bar are intended for helping users navigate through important pages of the website. The navigation menu bar can be customized in different ways. Mega menu is one such customized menu bar, which has got high usability factors compared to traditional navigation menu bars. The main advantage of mega menu is that user can view all options in one area, without scrolling down the content. The user can access the mega menu with just a click or mouse hover thereby saving his/her time.
Being an open source content management platform, Drupal powers millions of websites and applications, from whitehouse.gov to the economist.com. It is built, used, and supported by an active and diverse community of people around the world. Though there are hundreds of content management systems, Drupal scores high when compared to all the others.
Here are the three reasons why you should build your website using Drupal.
Commerce Giftwrap module provides a very quick and easy way to offer a gift wrapping option to your Drupal Commerce checkout. This module adds a new checkout pane with configuration settings to allow users to select a gift wrapping option to add to their order along with a message to the recipient. People often buy products hoping they can gift it to a certain address. If they can get it gift wrapped, it would be an added advantage as they could deliver it directly to the person instead of buying it and then gift wrapping it and then delivering it!
Consider that you are working on a Drupal website. It is not possible to work on the live website because it will result in crashing of the site if we make some mistake. So the best way to avoid this problem is by setting up the same site in the local machine and after that working on it. The following steps have to be performed if you want to setup a Drupal site in your local machine.
It is important to keep our drupal site up-to-date. New releases of contributed modules and Drupal core come out periodically to address critical security fixes, and it's important to stay on top of updates as they are released. It is difficult to download the latest version of each module separately and then remove the old one from the sites/all/modules folder and put the the new one in that place and all. Drush comes to help us in updating the modules in an easy way. The following are the steps to update the non hacked modules using drush
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 :
Every one will be familiar with the template files.Now lets see the case to theme a block. Here we can use block.tpl.php for theming the block but what if we want to theme the block specifically by a region?In one of my recent projects I need to theme the block in a specific region, I cannot use block.tpl.php as this may cause all other blocks to change.While digging a bit deeper I found out that this can be done easily by using a template for that particular region.Let's see how it can be done so.
Ignoring files:From time to time there are files you don't want git to track. There are a few methods of telling git what files to ignore. In which .gitignore file method is one of the popular method
To connect into MySQL database with the help of PHP based web applications we are in need of mysql_connect or by PDO method. Here i have added a common function which will be useful for the php based websites to connect into the database.
Recently I ran into the problem of mouseovers on touch devices. In short, they doesn't exist. I had just created a layout of four images which listed at the centre of the home page as like our zyxware website. And if you check the site on mouseover the image it will expand and while clicking the image it will go to the link added. But the problem is the mouse over wont work on the touch mobile devices.
While accesing site from mobile it needs to be changed as per the mobile reqirement. So we need to check whether the site is accessing from mobile devices or from the desktop or laptop. There is an easy way to detect it witht help of Javascript.
In this article I will be explaining What is Affiliate Links and what all configurations should be done to generate affiliate links on page load. Also will explain how to generate titles of required patterns using preg_match(). In a related article we have explained how to use hook_form_alter() to make the Multiple select field a single select.
In a drupal site if you want to display the location of a particular place then there are many modules to help you out. In this article I am writing about such a module. The name of the module is 'Location Map module'. In this article you can read about the configuration that has to be done while using the module. The module uses google maps to locate the particular locations.
Recently, I got stuck with a strange issue while using CKEditor. The problem was, When code such as v-aligns for tables or inline styles are added in ckeditor and saved then everthing things works fine, but as soon as the page is edited inline css and classes gets stripped off the content.If you are also facing the same problem then read on to know how to solve this.
cPanel offers a very simple point and click way to create subdomains in your hosting account. Read-on to know how to create subdomain for a site using cpanel.
This is a documentation on how the items displayed in a View can be grouped by using fields in the view. This can be performed using the 'Grouping field' option inside the Format settings of Views. Our client had a requirement where the view items displayed in the page needs to be grouped according to the filtered taxonomy term field.
I had an issue with a Drupal site that files not getting loaded due which issue on website alignments. This files not getting loaded issues was noticed on reviewing the console log errors in browsers.