Book Image

Building Websites with ExpressionEngine 2

By : Leonard Murphy
Book Image

Building Websites with ExpressionEngine 2

By: Leonard Murphy

Overview of this book

<p>ExpressionEngine is a flexible, feature-rich content management system used by top designers and web professionals across the world to build and manage their websites. It is written in the world's most popular web scripting language, PHP, and built on the MySQL database server. Are you eager to start creating websites with ExpressionEngine?<br /><br />Written for ExpressionEngine version 2.1 and later, this book will give you clear, concise, and practical guidance to take you from the basics of setting up ExpressionEngine to developing the skills you need to create ExpressionEngine websites to be reckoned with.<br /><br />You will begin with setting up a basic installation of ExpressionEngine. You will then learn how it works, before learning how to create and manage your website in ExpressionEngine. As you progress further into the book you will learn how to build an events calendar and how to build a photo gallery and before you know it, visitors to your website will be able to post comments, search your content, sign-up for a mailing list, and even send their friends an e-mail. As you consider the benefits of buying this book, you will learn how to manage members and member groups, how to optimize your website and avoid repetition, how to remove the index.php file for cleaner URLs, and how to take backups. At the end of the book, you will learn how to update ExpressionEngine to its latest version.</p>
Table of Contents (17 chapters)
Building Websites with ExpressionEngine 2
Credits
About the Author
About the Reviewers
Preface
Solutions to Exercises

Creating your single-entry template


First, you will create a pared down CSS file, before creating your single-entry template. Both will be much smaller versions of your regular templates/CSS (since you would not view this template on its own, but rather as an overlay on an existing page, you do not need the usual Ed & Eg header, sidebar, or footer. As a result, the template and the CSS are smaller).

  1. 1. Create a new template in the calendar template group called event_css. The template type will be CSS. Duplicate an existing template, namely, includes/site_css. Click Create and Edit.

  2. 2. Delete the input, textarea style. Further down, delete everything that appears after the /* Wrapper */ comment (including /* Wrapper */ itself).

  3. 3. Now update the body style to read as follows (essentially removing the background and adding in a four percent padding so that the text in the pop-up overlay will not touch the sides of the pop-up overlay box):

    body {
    font-family: "Trebuchet MS", Arial, Helvetica...