Your First Page
Difficulty:
Easy
Version:
Expression Engine 1.0: 20040425
Update July 2008: If you like these tutorials and would like to read more like these, except updated for ExpressionEngine 1.6 and with tons more information, tips, tricks and recommendations, check out my new book, Building Websites with ExpressionEngine 1.6. Available either directly from Packtpub.com or from your local online bookstore (such as Amazon), this book uses the same clear, step-by-step approach found in these tutorials and walks you from the basics of installing ExpressionEngine to everything you need to know to have an ExpressionEngine website you can be proud of. (No prior knowledge of ExpressionEngine assumed).
We’re going to start by assuming that you’ve installed Expression Engine successfully. If you haven’t, then you’re not in right place for technical support. Try referring to the installation instructions, or if you’re stuck, the Expression Engine forum for installation problems.
This tutorial is going to show you how to create your own personal webpage using basic HTML, introducing you to the concept of templates and template groups. So login into the control panel, and get ready for some toasty action!
This tutorial takes you through the basic process of creating a HTML file within a template and displaying it on screen. Most websites, especially for businesses and other organisations have many things in common; they all have a logo, they'll all have a heading, some text, a menu, and a footer. In this tutorial, we set about writing our website and the kind of elements it will have. In tutorial 2, we will show you how easy it is to take the results of this tutorial and make it look completely different. As a site grows, you're going to have more and more pages, all with the same common elements. This is where Expression Engine can come into its own. Future tutorials will show you how, by converting the content of your pages into a weblog (I use weblog to mean data container, rather than an online diary or journal), you can quickly modify the look of an entire site by just changing a single file. Then, I'll show you how you can set-up members so that colleagues, family or friends can write content for your site, leaving you to get on with designing the site. But first, writing a HTML file...
Look at the top right hand of your screen...


Don't worry if you're feeling a little lost to begin with. Expression Engine has a steep learning curve, but it's fun too...

Try as you might, if you're having troubles seeing the blank browser window in this step and keep getting "404 Page Not Found" errors instead, it may be because of a problem with query strings...follow the instructions in the Expression Engine documentation to force URL Query Strings.



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
As you write more and more pages, you'll want to make sure that your titles are short and unique. This is because when your page is saved as a favourite, it is the title that is used. A title should be a brief reminder of what's on your page...

The code in green is code that you should have written before. I repeat it to give you a guide as to where to insert the new code...
<body>
<h1>Welcome to my toasty tutorial!</h1>
</body>
<h1>Welcome to my toasty tutorial!</h1>
</div>
<h2>What kind of a nutter writes a website about toast?</h2>
<p>Site written by Leonard Murphy.</p>
</div>
</body>
If you've got this far, why not leave me a comment with a link to your website to inspire others?
Got something to add? Add your comment to the 7 already made
Written by Leonard on Saturday 1st May 2004