Error handler with requirejs

Error handler with requireJs is very easy. As we all know the importance of error handling in application this topic helps you to understand the error handler concept in requireJs. Error handler Method definition By default in requireJs there are two methods which handles error. requireType requireModules requireType:  This is a string value with a […]

Understanding requireJs hello world example

requireJs hello world helps you to understand the flow of your module across the application. Using requireJs the java-script can be structured with modular approach. Introduction requireJs is most commonly used by java-script applications such as Kendo UI and other major frameworks like WordPress, Drupal etc… requireJs is a modularity based architecture which will help […]

Woocommerce override template files via theme in wordpress

Woocommerce override template files via theme is pretty straight forward. This plugin has lot of features to utilize for e-commerce websites. Woocommerce template contains the markup and template structure for the front end display. Introduction Woocommerce is a WordPress ecommerce plugin that helps us to build an online store using wordpress platform. Woocommerce is an […]

Drupal 7 Multisite Install steps in Linux

As discussed in earlier post  Drupal 7 Multisite install is very interesting topic to work on in both Windows and Linux. Why Drupal 7 Multisite Install ? Refer Drupal 7 Multisite Install steps in Windows Steps for Drupal 7 Multisite install  Linux: Assuming your web-directory is /var/www/html/   #1 Once you have decided the multisite, create a folder under sites  refer the above […]

Drupal 7 Multisite Install steps in Windows

Drupal 7 Multisite install is very interesting topic to work on. Why Drupal 7 Multisite Install ? When coming to web applications like Drupal there are many features to utilize on it and “Multisite” is one among them. Multisite is needed when you want to maintain Single code base for Multiple Drupal 7 sites. Steps for […]

Drupal 7 hide content type from search results

In Drupal 7 hiding content type from search results in your application is pretty simple. Hook node access alter will provide the interface to bypass the search result query.

Hide content-type For example if there is a content type called “some_type” in your application, which you don’t want to show in your search result […]

Pass PHP variables to Javascript in Drupal 7 ?

Why you need to pass php variables to javascript in drupal 7? In some of your D7 applications you may need to access certain variables in JavaScript globally. For example we need the Base URL (stored in PHP) to be available to javascript. In Core PHP we will do as follows

But we can pass […]

How to install and upgrade Drush version in Linux ?

When I was working in one of my Drupal projects I faced a few issues with  Drush commands like Site install, to resolve this you have to upgrade Drush version. I faced the issue with command not executed and ended up with some errors. I searched in Google for trouble shooting this issue but after spending hours in Google I […]

Commonly used Drush commands Drupal Developers must know

What is Drush ? Drush is a command line utility tool for Drupal. It is a Drupal Shell which allows us to manage our site remotely through command line. Why do we need Drush ? It Saves Lots of Time by doing many Drupal operations in a faster and efficient way. Although Drupal is Awesome there […]