Difficulty:Easy

Version:Expression Engine 1.0: 20040523

Buy My Book!

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).

This tutorial is designed for complete beginners to Expression Engine. Perhaps you've just handed over your cash, or you're just running their demo to see how it all works. Whatever the case, you'll need a crash course in "Expression Engine" and that's what I'm going to try and do. I'll introduce you to some of the basic concepts of Expression Engine, to help you feel comfortable and to avoid unnecessary frustration. At the bare minimum, I hope you get to the stage where you can ask questions in the forum without getting confused by the answer.

Background Information

Expression Engine is a Jack-of-all-Trades. It appeals to a huge cross-section of the Internet: from people who want a simple way to write their website, to dedicated bloggers with a story to tell. Have a look at the support forums and you’ll see a wide range of people all trying to do different things.

When you get a tool as complex and powerful as this, it develops a language of its own. People start talking about templates and weblogs and tags and variables. Let me start at the beginning…

Instructions

Don't panic! It's all easier than it seems...

Log into Expression Engine through a screen that looks remarkably like this

Go to the templates screen.

Create a new template group.

Name your template group.

Name your template group.

Write your template.

Note that although you can rename your index.php file, you cannot delete it since this is the file that can talk to Expression Engine. If you want to hide it, read this discussion about setting up redirects using a .htaccess file

How templates relate to URLs.
Write your template.

The tutorial0 template group with the index template explicitly specified.

Going back to the template management screen.

Adding a new template.

Naming your new template.

Template created message.

Name your template group.

Write your template.

How templates relate to URLs.
Visit your template.

Go to the admin screen.

Go to the weblog management screen.

Create a new weblog.

Name a new weblog.

Edit groups.

Select a field group.

Go to the publish screen.

Publish The Tasmanian Devil.

Title your first entry.

Write your dynamic text.

Set your entry options.

Preview your entry.

Edit your template.

{exp:weblog:entries weblog="tasmaniandevil"}

<h1>

{title}

</h1>

{summary}

{body}

{extended}

{/exp:weblog:entries}


My site at this step.

Publish a new entry.

Your new entry. Okay, yes I'm reusing the picture from step 26 to reduce your download times.

My site at this step.

{extended}

<h6>

Written by {author} on {entry_date format="%l %j%S %F %Y %g:%i %a"}

</h6>

{/exp:weblog:entries}


My site at this step.

Summary

This completes your introduction to the most basic features of Expression Engine. By now you should be familiar with the concepts of “templates”, “weblogs” (as data containers) and “tags”. Just to refresh in 8 words, tags go in templates to point to weblogs! Expression Engine is a very versatile tool, and you probably have your own unique ideas about what you want to do. By following this tutorial, you should at least have some idea of how the underlying concepts interact, enabling you to seek further help in the user guide, or in the support forums.

Other pages that might interest you include the documentation about date variable formatting, weblog tag parameters and weblog tag variables. Also of interest might be the pMachine introduction to templates and introduction to tags.

Finally, don’t forget to have a browse through my other tutorials for a helping hand.

Got something to add? Add your comment to the 13 already made

Written by Leonard on Saturday 29th May 2004