Krishna ia a Lead/ programmer passionate about systems and processes. She has over 10 years of experience in the Drupal industry as of 2017. She started as a fresh graduate developing Drupal code and now manages projects for Zyxware.
Introduction
Audeze is a California-based manufacturer of high-end headphones. Audeze headphones use planar magnetic headphone technology for accurate, high-fidelity sound reproduction. It has a niche but extensive community base reaching as far as Singapore and China from among its loyal customers.
Rapid economic change coupled with the changing value of money has triggered the need for employing alternate solutions to fulfill the indispensable needs of the common man. There are times when you are in a dilemma when it comes to buying high-end consumer goods.
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.
Drupal Views provides pagination options. However at a glance the number of items shown in a page seems to be limited. However there is a way to change the number of times shown in a Views page dynamically. If you want to know how to change the number of items displayed in a Drupal Views pager number dynamically then continue reading.
Drupal 7 supplies developers with a platform neutral format for generating database queries. If you are a Drupal developer, you might need to see the actual SQL query that is generated by Drupal for debugging and testing purposes. If you would like to know how to print an SQL query with arguments while using db_select in Drupal 7 then read on to find out the solution.
We have been facing the error message "Fatal error: Class 'PDO' not found in includes/database/database.inc on line 184" in one of our Drupal sites. Googling up the error text had brought out a number of solutions which did not help to resolve the error in our case as there is no single cause of the error. However we managed to solve it using a different method. If you are facing the same scenario in your Drupal site and want to know how to solve fatal error with Class 'PDO' in Drupal sites the continue reading for the solution.
While trying to fix an issue with Drupal Views, I wanted to use a single custom table to store the char count of the body field of different content types instead of creating separate CCK fields for each content type to store the same. The question that came to my mind was how to integrate my custom database table with Drupal Views? Drupal's Views module provides a hook for doing this - hook_views_data().
We start thinking about global variables when we want something to be available just everywhere. One case is when we want a particular variable to be available to all modules in a site. In Drupal, global variables are usually defined in settings.php. With that, all modules can access that variable.