Play

Tags: Drupal

Installing Drush on Windows

Post to Twitter

With ‎Drush‎ you can greatly reduce the amount of time needed to setup and upgrade your Drupal installations - even if you're not a command line expert. If you haven't used Drush yet, you've probably at least heard of it.

This walkthrough will list the steps to get Drush setup on Windows. I'm using WAMP for my localhost. If you're using something else some of your paths might be different, but the setup process is the same.

Display a GMap of a Referenced Location

Post to Twitter

If you have many events that are at the same location, instead of adding the location information to each event, you can setup one location that is referenced by each of your events.

When you display a node reference, you have the options to display as a title, teaser or body. In order to generate a Google Map, you have to create a View that will load the reference to your Location and display those fields as a GMap

Inline Messages 1.6 Released

Post to Twitter

Inline Messages‎ allows you to display form messages (error/status/warning) inline with the form instead of the default behaviour at the top of the page (or wherever your theme outputs messages).

Version 1.6 has been release with a few important enhancements.

Avoiding the Duplicate Content Filter on your Drupal Site

Post to Twitter

One SEO consideration that can be overlooked is having the same content be accessible by multiple urls on your site. This is called duplicate content and your site can be flagged and disappear from Google or other search engines.

If you're using Drupal with Clean URLs and ‎Pathauto‎, consider the following:

http://www.example.com/blog/2010-03-10
http://www.example.com/node/256

Tags:

Add Plus1 Voting Widget to Nodes in Panels

Post to Twitter

If you're using ‎Panels‎ to output your content type and you enable the ‎Plus 1‎ module, you may notice the Plus 1 widget doesn't appear when you view your node.

If you don't see the widget, then you've probably enabled 'no extras' in your Panels node template override. If there's no other reason for enabling this option, you can simply uncheck the box and the Plus 1 widget will appear when you view your node.

If you do need to keep this unchecked, you can add a snippet to either your theme's node.tpl.php or node-customtype.tpl.php.

Theming a Specific CCK Field

Post to Twitter

The display of CCK fields is handled by the file content-field.tpl.php which is in the folder sites/all/modules/cck/theme. To override the display of a specific CCK field, the system will look for the format content-field-field_name.tpl.php in your theme directory.

Assuming you have a field named 'files', the name of your override would be content-field-field_files.tpl.php. If you're not sure of the field name go to admin/content/types and select the Fields tab - which will give you an overview of all your CCK fields.

Displaying your Drupal Mission Statement on Multiple Pages

Post to Twitter

While many sites don't need to utilize a mission statement, it can be useful for adding static content to your theme.

I needed to add copy to the header for a client that would appear on all pages, that they could easily edit and wouldn't involve any editing of the theme files. I immediately thought to use the mission statement that's available at admin/build/themes/settings. The only problem being that by default, the Drupal mission statement only appears on the home page.

Tags:

Testing IE6, IE7 & IE8 on one computer

Post to Twitter

Recently I had to add compatibility for IE6, IE7 & IE8 to a site I was working on. Only problem was that I can only have one version of IE installed on my machine.

Inline Messages

Post to Twitter

The Inline Messages Drupal module has replaced Inline Errors.

The major difference (and hence the name change) between the 2 modules is that Inline Messages lets you move any form messages (status, error, warning), where Inline Errors only moved form error messages.

Contributing Projects to Drupal using Tortoise CVS

Post to Twitter

While I consider myself fairly technically savvy and have been developing & theming Drupal sites now for a few years, when I had my first module I was ready to contribute, I have to admit that I was feeling a little dumb-struck.

So, in order to help anyone else new to this process, I decided to document the steps you need to take to get your module running on drupal.org.

i heart cycling