Keeping your Drupal links fresh

Here are a couple of really useful modules I've been using to help ensure my Drupal sites don't have broken links, and that embedded URL aliases are kept current automatically:

From their respective Drupal project descriptions:

Pathologic

GitHub now supports SVN, or, Who Put Chocolate in My Peanut Butter?

Well this is just too awesome. GitHub now allows you to pull repositories into SVN. It's read-only, at least for now. I'm really impressed with GitHub and this really takes it to the next level.

http://github.com/blog/626-announcing-svn-support

Create a REST-style API with CakePHP and XML

It's pretty easy to build an XML-based REST API with CakePHP. You just write your application as normal but make a few changes here and there to output the XML data.

A few things to keep in mind:

  • Any controller that outputs XML will need to use the RequestHandler component. I find it's easiest to put the component in your app_controller.php so it automatically loaded by all your controllers.
  • You can use the XML Component's serialize object to automatically output all your XML data without having to manually define your template item-by-item.

Integrating Gallery2 with Drupal

I have successfully implemented Gallery2 multi-site with a Drupal multi-site setup. It took a bit of work so I'm sharing the overall process here.

A good place to start is "Drupal integration documentation": http://codex.gallery2.org/Integration:Drupal

Install Gallery2.

Upload and unpack the gallery software to your server.

Adding a security review to your Drupal site

Any web site owner should be concerned with security. One of the great things about using Drupal is that the developer community takes security seriously. There is actually an entire team of security experts devoted to making sure that any potential vulnerabilities are identified and fixed.

Automatically adding search results to 404 error pages

Here's a nice tip for Drupal sites. You can automatically invoke your site's search engine whenever a user tries to access a page that results in a 404 Error (Page Not Found). This is great if you've changed a lot of paths and don't want to set up redirects or aliases for all the old addresses. Quite often, paths will be similar but not exactly the same before and after a move. So it's nice to be able to search for the terms presented in the requested page URL.

Using custom fonts with Cufon and Drupal

It's surprisingly easy to get custom, cross-browser compatible fonts using the Cufon module for Drupal. This is an awesome solution until CSS3's native fonts handling becomes more widely adopted among browsers. What you'll need:

First

I've been building websites since 1994. Wow, really? Yeah. I haven't had my own, personal site for a few years though. I'm so busy with work projects I hardly ever have time to do side-projects but I'd like that to change.

So, this is my first post at my new site.

Syndicate content