Drupal Development
Adding external style sheets to your Drupal theme
Posted May 14, 2012Sometimes it's best to add external CSS files through Drupal's drupal_add_css() function. A very practical example is where we add a Google web font to a subtheme. If you're customizing a subtheme of a complex theme like Omega and don't want to have to create a new page.tpl.php file just to add a custom style sheet, or the additional overhead of a custom module, this is a great solution.
Drupal's White Screen of Death
Posted April 01, 2012So you're building your Drupal website and everything is moving along just fine. Everything is working fine, then all of the sudden... nothing. You view the page source and there's no code on the page. You've encountered the infamous Drupal white screen of death (WSOD for short).
You may worry your site disintegrated. All that hard work and then nothing. Fear not! It's likely a simple fix.
Restricting Shipping States in Ubercart, Drupal 6
Posted November 02, 2011
We recently had to do some work for a client where they were only allowed to ship to certain states due to alcohol license shipping restrictions. Our needs were pretty simple and we didn't want unnecessary overhead to affect performance, so we rolled our own solution with a custom module.
Node checkout with quantities
Posted November 01, 2011The Node Checkout module is a great way to allow users to customize a product with a Drupal + Ubercart setup. However, one of the flaws is that it doesn't allow you to change the quantity of the item in the cart after it's been added.
Use Boost to Increase Drupal Website Performance
Posted October 21, 2011The Boost module for Drupal is an easy way to increase page load performance by caching static pages on your website to files. Doing so significantly decreses page load times and server load for anonymous visitors. This module is ideal for websites that don't require a user account, such as most corporate websites, restaurant websites, and informational websites.
Drupal Related Posts Blocks
Posted October 11, 2011We needed a way to show a "related posts" block on our blog entries based on the topics assigned to the post. In Drupal, it can be accomplished by creating a Views block and placing it on the desired pages. In our case, we have a taxonomy vocabulary called "Topics" and I want them to show at the bottom of all blog entries.
Requirements:
- Drupal 6+
- Views 2+
Here's how we did it:
Drupal Webform Video on Youtube. 30 minutes to make. 8,600+ views.
Posted March 18, 2011When working on a website project last year, I started to realize documentation was severely lacking for many popular Drupal modules. So I decided to grab my laptop and a microphone, and sat down in a quiet room to record a short video tutorial showing how to set up and use the Drupal Webform module. It took about 30 minutes to record, edit, and render. Today it's the most popular video on the subject on YouTube with 8,600 views and counting.
