drupal 7 archive

peter's picture

How to Pass Multiple Values through an Exposed Filter in Drupal Views

I regularly work with Views and recently I have had a few odd needs. One of which was when a user selects an item, that item then disappears from the view. The view has exposed filters with AJAX turned on. Since I don’t know how many items I’ll need to filter, I’ll need a way to pass multiple values through an exposed filter. Views apparently does not do this out of the box. If I was filtering on a content field setup for multiple values this may be easier. But no, I am filtering on nids. Since nids are a system field, Views sets the filter handler to 'views_handler_field_numeric'. Which gives me a textbox for input and numeric operators. Read More…

jonathan's picture

Faster Database Backups via Drush! Plus Capistrano Integration

When working with Drupal sites, Drush is your go-to tool. This post is going to focus on the drush sql-dump command. This allows you to export your database to a sql file, so you can restore it later. This can be particularly useful when you are working in a development environment and need to deploy a site to production for the first time. Or when you start work on a new clients existing site, you need to export their live database and download it to your local environment. Read More…

jonathan's picture

How to Write Drupal Update Scripts

This is the second part in my two-part series about Drupal update scripts, specifically focusing on using update scripts for your custom modules as part of your deployment process. You can read the first post about Why You Should Spend the Extra Time to Write Drupal Update Scripts. Now that we know "why" lets talk about "how" and what better way to demonstrate how then look at real-world examples. Read More…

kronda's picture

Creating a Custom Panels Layout in Drupal 7 (Video Tutorial)

There are a lot of great tutorials on the web and, as Chris pointed out, Drupal is a pretty developer friendly platform. With some chutzpah and the power of Google, you can build just about anything in Drupal. But for the beginner to intermediate Drupaler, even a well crafted text tutorial can be just a bit outside their knowledge and hard to follow. As someone who learns visually, sometimes I just wanted someone to show me how to do something. In that spirit, I offer up this lesson on creating your first custom Panels layout. I hope you find it useful and if you have questions or feedback, feel free to leave them in the comments. Read More…

jonathan's picture

Why You Should Spend the Extra Time to Write Drupal Update Scripts

Drupal update scripts are a great way of automating database updates. They are extremely important to contributed modules when changing the database schema and updating existing data to the new schema. Specifically I will be discussing using update scripts in your custom modules as part of deploying new features. I'm not saying update scripts should replace using the Features module, in fact I use them together, update scripts are great for things that might not be managed in features. This will be the first in a two-part series that will cover using Drupal update scripts. Read More…

Pages