We had faced a peculiar problem with slideshow in colorbox in one of our Drupal projects. Everything works well before an image cache is set to slideshow images to make them same in size. After setting this image cache, colorbox slideshow begin to behave so strangely by showing a very small window with scroll bar and images are hardly visible. Please refer the image below. But after refreshing page images appears with expected size. But loading another page, and returns to the previously loaded page also make the situation again.
Technical Blog
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
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.
Maintaining a Drupal site is not just about managing the content on the site and administering users and the configuration. An important part of maintaining a Drupal site is in keeping the site updated with the latest security updates released for Drupal core and also for the contributed modules used on the site.
How to programitcally call a view using exposed filter was discussed earlier. But if you want to pass a date field to the view's exposed filter form, you have to change your code a little bit. If you want to know how, you may read on.
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.
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.
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
As a drupal developer, there were times when I was stuck at some point. At these times, 'devel' module came to my rescue. There are many debugging functions provided by devel. Those are dpm, dpr, dvm, dvr etc. Here, I am going to explain 'dpr()' provided by devel module.
We were requested by a client to post the published content automatically on Facebook wall. For publishing a content from our Drupal site to Facebook wall, need to create a Facebook app .If you want to know how to post a published content to Facebook wall in Drupal 7 then continue reading.
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
In a Wordpress we can assign categories to each post and have listing of posts in each categories. Sometimes we need to list the contents of a particular category as the home page. In Wordpress we can make a static page as the home page under the settings tab, i.e. Settings » Reading settings. There you can make a static page as home page but not the contents in a category.
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?
Drupal 6 will be maintained till the release of Drupal 8. Drupal 8 release is expected to happen towards the end of 2013. The current stable branch Drupal 7 will be maintained till the release of Drupal 9 (probably 2015). If you are running a production site on Drupal 6 then you will probably have to start looking at upgrading the site by the end of this year.
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.
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.
We might encounter a situation where we may need to fetch CCK fields values in a node, i.e, we may need to show CCK field values in custom search results. Drupal provides a easy way to fetch CCK fields programmatically. Read on to know how to fetch CCK fields value programmatically
One of our Drupal clients wanted us to display the different categories (taxonomy terms in Drupal speak) in their Drupal site as a tag cloud. If you are facing the same scenario in your Drupal site then read on to know how to create a tag cloud using the Drupal Cumulus module in your Drupal site.
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.
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.