Varnish is generally used to cache pages for anonymous users. It is also used to cache pages by role. At Red Crackle, we deploy Varnish to cache pages by role for corporate sites that are exclusively visible only under SSO. This ensures all users are authenticated but there is no user related information present on most of these pages. This article explains how Varnish caches pages and how configuration can be altered to cache pages by role. The article uses hook_init() to set a cookie that identifies user roles. hook_user_logout() is then used to remove the cookie as soon as the user logs out.
In this article, a query has been optimized to ensure a view loads faster. This is achieved by modifying the view so that it uses inner join instead of left join. On employing this useful trick, we could reduce query time of a view on a site with 80,000 entries from 1.1 seconds to less than 10 ms. Read on if you want to see how.
In this article, we demonstrate how the Drupal framework is configured with the AngularJS framework. This detailed article will ensure you are able to make best use of features from both platforms in your development projects. The article explains the entire process - starting with AngularJS installation and executing a Calendar function - through a series of screenshots. A brief intro to AngularJS is also provided in the beginning of the article. By the end of this article, you will have gained working knowledge to go ahead confidently with Drupal-AngularJS integration.
Taxonomy terms look organized when they are presented with a comma in between. In Drupal, however, taxonomy terms do not feature a comma. Instead, they just have a space in between. This does look a bit awkward at times, if there are multiple taxonomy terms.
This article demonstrates how to create comma-separated taxonomy terms in Drupal. This is achieved by altering the CSS file associated with your page's theme.
Drupal allows users to customize their pages by changing theme settings in the administration section. This can be achieved by creating new settings through the addition of fields of your choice. The article shows how to achieve this through a step-by-step procedure using screenshots. You will have to create a theme-settings.php file to achieve this.
This article demonstrates how to create a sub-theme in Drupal 7. The article also explains in brief the characteristics of a sub-theme and the properties it inherits from the parent theme. Does a sub-theme inherit logos and favicons? Learn the answer to this and a lot more in the article. The article also lists the fields you will encounter while creating a sub theme.
As you already know, the AJAX framework facilitates the creation of dynamic web pages on client side machines. Drupal 7 features a host of AJAX framework commands that can be used to call jQuery commands. But what should be done to perform complex functionality? How do you create customer Ajax commands? This article demonstrates this through video and code.
Image styles allow you to set pre-determined graphic templates that lets images on your site have a consistent size or scale. Image styles allow you to crop, resize, desaturate and rotate images before they are displayed. Drupal offers three image styles - thumbnail, large and medium. This article demonstrates creating new custom image styles using Drupal UI.
This article demonstrates how to integrate Drupal with Mandrill in order to send transactional emails. For those who don’t know, Mandrill is an application that was developed by Mailchimp. It sends out transactional emails while allowing you to track valuable details about mail analytics. To follow the article, you will have to create an account with Mandrillapp.com. Perform configuration updates as provided in the article. Finally, test the emails to verify if they can be sent via Mandrill.