Categories
Drupal Development Resources

Force https via .htaccess

Sometimes it’s easier to more convenient to redirect via htaccess than the Secure Pages module when you want all pages to be secure. RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Categories
Drupal Development Resources

Drupal Ubercart 7.x-3.x custom invoice templates

In Drupal 6 all you had to do was copy a couple of files into your theme folder and ubercart would automatically recognize your customer invoice template.

Drupal 7 has a more difficult process where you would actually have to define your template file using a module. Fortunately, somebody came out with a module recently that automatically registers invoice template files in your theme.

Categories
Drupal Development Resources

Drupal Related Posts Blocks in Drupal 7

This is an update to my original post for related posts blocks in Drupal 6. Created a block of links for related posts is a useful way to keep visitors engaged in your website and continue reading. This method is specifically for showing other nodes with the same taxonomy terms, but it can be modified […]

Categories
Drupal Development Resources

Custom Paths for Taxonomy Menu in Drupal 7

The taxonomy menu module is an way to generate a menu of taxonomy terms assigned to nodes. Practical examples include: Product catalogs Blog topics Node filters You could achieve the same effect by manually creating a menu and updating the links occasionally, but that's slow and impractical for sites with a lot of constantly changing […]

Categories
Drupal Development Resources

Create a Confirmation Email with Webform in Minutes

It goes by many names: Thank you email Confirmation email Email Receipt They’re great for follow-up instructions or a simple “we got your message.” Thanks to the Webform module for Drupal, you don’t need even need to know any code to set this up. Here’s how you do it: 1. Download Webform module Get It […]

Categories
Design Drupal Development Resources News

Gaslamp Media Goes Responsive

We're proud to show off our new responsive website. Now our website is optimized for mobile, tablets, and desktops. Try it out. Resize your browser window or rotate your tablet to see it in action.

Categories
Drupal Development Resources

Adding external style sheets to your Drupal theme

Sometimes 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, […]

Categories
Drupal Development Resources

Drupal’s White Screen of Death

So 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 […]

Categories
Drupal Development Resources

Restricting Shipping States in Ubercart, Drupal 6

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. This example is a very […]

Categories
Drupal Development Resources

Node checkout with quantities

The 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. For example, you may use node checkout to customize […]