O'Reilly logo

Joomla! 1.5 Templates Cookbook by Richard Carter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customizing the error page in Joomla!

It's the small touches to a website that can often make the difference between a poorly designed website and a well-designed website. One such small touch is to provide a customized error page that is displayed when a visitor to your website attempts to view a page on your website that doesn't exist.

Getting ready

Copy the error.php file in the templates\system directory into your template's directory. For this example, we'll copy it into the templates\rhuk_milkyway directory. This technique is known as template overriding in Joomla!.

How to do it...

Visually, we're aiming to create something that looks a little like this:

At the moment, our error page's file looks like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required