Drupal

Pluggable Entity Operations in Drupal 7

Posted: March 1, 2010 In / 2 Comments

In Drupal 7 core all the common objects, like nodes, users, comments, and terms, are called entities. Entities are a base level conceptual object designed to be used as a base for objects in core and contrib. But, there is a problem with the core entity pattern we can improve on in our contrib modules.

Entities have a controller used for their loading operations. The controller is a class that can be swapped out for alternative controllers when developers want to do something fancy, like have their own node caching setup. But, only the load operation is on the controller. The other CRUD (create, read, and delete) are hard coded in functions like node_load, node_save, and other object operations. The CRUD control for entities can't be completely swapped out. Let's take a look at a base pattern to use for completely swappable controllers. Read more »

SmartGit - The Best Git Gui So Far

Posted: February 24, 2010 In / 10 Comments

As Git becomes more popular and widely used a GUI becomes even more important. This was especially important when Drupal recently looked at what version control system it was going to switch to. (If you're interested in the Drupal (unofficial) decision checkout Angie Byrons post on groups.drupal.org)

When I surveyed the Git GUI landscape SmartGit stood above the rest for your standard user.

SmartGit Read more »

Downloading Dependencies With Drush Make

Posted: February 19, 2010 In

Quite a few Drupal modules rely on outside libraries to work. Some are JavaScript based requiring outside plugins and others are based on outside libraries. When users install these modules they, also, have to download and install the outside library. This is a pain that drush make and the Libraries API in modules can help with.

A typical setup will have a drush make file with a project and associated libraries defined within in them. The author who puts together the profile or top level make file will need to know the library and where it needs to go.

A little known feature about drush make files is that all projects can have make files and drush recursively builds each one out. So, if a module has a make file and the module is included in another make file the modules make file will be executed as well. Read more »

Removing "(not verified)" in Drupal 7

Posted: January 19, 2010 In / 2 Comments

Out of the box, Drupal puts (not verified) next to user information for anonymous users. For example, when an anonymous user submits a comment (not verified) appears next to their name. This is handy for community sites where you need to distinguish between who is a member and who isn't. For sites, like a single user blog, the (not verified) doesn't fit. So, one of the first things I do when a fresh new major release of Drupal comes along is learn how to remove the (not verified)Read more »

Battle of the Drupal 6 Admin Themes

Posted: January 15, 2010 In / 8 Comments

The admin area of a Drupal site should be themed differently according to recent usability research. The idea is that an admin or a content editor needs the context that they are doing admin functions, which an admin theme can provide. The concept of having an admin theme is different for many Drupalers. While numerous Drupal shops have been using them for quite some time, a lot of discussion has focused on using the theme for the site in the admin area. Drupal 7 is embracing admin themes by using one and taking the admin area to a whole new level. But, we don't have to wait for Drupal 7 to have a smoking hot admin theme. Let's take a look at 3 good admin themes for Drupal 6. Read more »

5 More Hot & Free Drupal 6 Themes

Posted: January 8, 2010 In / 5 Comments

Over the past year the number of good looking freely available Drupal themes has really gone up. Yet, I am still amazed at how many sites are still using Garland as their theme. Especially the personal sites of so many Drupal developers. Don't get me wrong, Garland is a great theme. It's just a very well used theme which means its lost some of it's luster. So on the heels of my post about 5 Hot and Free Drupal 6 Themes, here are 5 more well designed themes for your usage considerations. Read more »

5 Hot & Free Drupal 6 Themes

Posted: January 6, 2010 In / 5 Comments

Drupal has long been known as a CMS with few good free themes and even fewer that anyone would call hot. While there have been many great sites built with Drupal the lack of hot free themes has long been discouraging. That is, until recently. Over the past year there has been a boom in hot free Drupal themes so here are 5 of them that recently caught my eye. Read more »

First Step In Choosing A CMS

Posted: January 4, 2010 In

With so many great and award winning content management systems on the market it can be difficult to choose the right one for a project or for a company to use as the basis for its sites. It's a big enough topic that articles have been written and books published on the topic. But, I think there is a more basic decision that needs to be made before the selection can be considered. One that tells you about your plans for using the system.

In the current state of CMS you can't have your cake and eat it, too. That is, you can't have everything you may want out of the box. You need to make a base decision about what you want. Basically, choose two of the following three:

  • Flexibility
  • Slick UI
  • Install and Setup Ease

Let's take a look a couple real world examples using Wordpress and DrupalRead more »

Managing Comment Spam

Posted: December 8, 2009 In / 5 Comments

spam.jpgComment spam seems inevitable. Every blog, podcast, or site that I've run that allowed comments turned into a place for comment spam. Over the years I've tried numerous methods to kill the spam and most of them either didn't work very well or stole too much of my time to deal with something annoying. After dealing with this problem for several years I now have a setup that manages most comment spam with little work on my part. Read more »

Good Drupal Search Without Solr

Posted: November 30, 2009 In / 6 Comments

Lucene_logo_green.pngWhen it comes to good Drupal search the options are limited. There's Drupal core search which isn't anywhere near the search experience we've come to expect. It's a search engine written by CMS developers. On the other hand we hear about Solr. To use Solr you either need to pay a company like Acquia to host it or run Solr as a Java program on a web server. While the Solr module provides all you need to get it going, for most of us this simply isn't an option. For those of us who want more than Drupal core search offers but aren't ready to jump to Solr there's an option in the middle. The Lucene API module. Read more »