Book Image

Building Websites with ExpressionEngine 1.6

By : Leonard Murphy
Book Image

Building Websites with ExpressionEngine 1.6

By: Leonard Murphy

Overview of this book

<p>ExpressionEngine is a flexible, feature-rich open-source content management system used by thousands of individuals, organizations, and companies to easily manage their websites. It is written in the world's most popular web scripting language, PHP, and built on the MySQL database server. This book is written for ExpressionEngine 1.6 users, although it will still be a good introduction for those using other versions.<br /><br />If you're eager to start creating websites with ExpressionEngine, this is your book. This book gives you clear, concise and, of course, practical guidance to take you from the basics of setting up ExpressionEngine to developing the skills you need to create professional ExpressionEngine websites to be reckoned with.<br /><br />This book will take you through the process of setting up a website with ExpressionEngine with the help of an example site. By creating a site for selling toast online, you will learn all the stages required for building a professional website in a plain, articulate manner.<br /><br />This book is aimed at beginners new to ExpressionEngine, but will allow readers to advance rapidly up the learning curve to the point where they can tackle any task with confidence.<br /><br />Once you're set up with a basic installation of ExpressionEngine, you will move on to learn about creating and managing your content, customizing the look of your site, managing users and groups, allowing visitors to post comments and feedback, building an events calendar, and building a photo gallery. The book also covers the discussion forum module, the simple commerce module, and the wiki module as well as basics such as creating search-engine friendly URLs, 404 "page not found" pages, removing the index.php file for cleaner URLs and updating ExpressionEngine to the latest version.</p>
Table of Contents (16 chapters)
Practical Data Analysis and Reporting with BIRT
Credits
About the Author
About the Reviewer
Preface

Chapter 3


Chapter 3 described how to set up your first blog and introduced the use of CSS within Expression Engine.

Exercise 1

To post a new entry to a weblog, log into the control panel at http://localhost/admin.php (or http://www.example.com/admin.php), and select Publish from the menu at the top of the screen. Select the weblog you wish to post to (in this case Toast News), and type in the new entry. Hit Submit when you are done.

Exercise 2

To create a second weblog, follow the instructions in Chapter 3 to create a new weblog and post a starting entry to it. Then create a new template group. Copy the index template from the news template group into the new template group's index template and change the following line so that it points to the short name of the new weblog:

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

You can also change the title of the page to reflect the different content.

Exercise 3

Exercise 3 involves modifying our CSS. To change the color scheme of the templates, select some complimentary colors and then edit toast/toast_css to replace your original colors with new tones. In the following screenshot, the original browns have been dubiously replaced with shades of yellow:

To move your entries so that they no longer leave space for the menu, you can change the following line in our CSS so that it reads 100%:

#content{
font-size: 80%;
width: 70%;
float: left;
}

To play around with a different photo size, you will first need to copy or upload the new photo to your images folder.

Next, you need to change the toast/toast_css template. The header element should point to the new image, and you will need to adjust the header height to match the height of the new image (for example, 200px).

If the image overlaps with our page headings, you will also need to adjust the margin-left property of your #header h1 and h2 elements. In the following screenshot, the margin-left was set to 275px as shown next:

#header{
background: url('{site_url}images/square.png ') no-repeat top left;
background-color: #DEB887;
height: 200px;
margin-bottom: 30px;
}