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 6


Chapter 6 introduced members and member groups.

Exercise 1

To edit an existing page as Editor Phil, first log into the control panel as editorphil. From the menu, select Edit and click on the entry to be edited. If there are lots of weblog entries, filter them by weblog so that you only see a few entries. Select the entry, make the update, and click Update.

Exercise 2

To create a template group that can only modify templates, go to Admin | Members and Groups | Member Groups and select Create New Member Group. The new group will need control panel access (under Control Panel Access) and will need to be able to access the TEMPLATES area (under Control Panel Area Access). Under Template Editing Privileges, you can decide which templates can be edited and which cannot. Register and assign a new member to this group, then log in and verify that it works as expected.

Exercise 3

To create a menu item that only members can see, you need to edit the .menu template. If each menu item is listed out separately, then add the following code around the menu item:

{if logged_in}
<li>
<a href="{site_url}promotions" title="Promotions">Promotions</a>
<div>Check our our current deals!</div>
</li>
{/if}

Alternatively, if you are using a weblog to manage our menu content (as suggested in an exercise at the end of Chapter 4), then add the following code to the toast/.menu template. This is a little more complex, but essentially says that if the member is logged out and the url_title of the toastmenu entry is promotions, then do not display it (all other menu items will display). If the member is logged in, then display the menu item no matter what the url_title is.

{if (logged_out AND url_title!="promotions") OR logged_in}
<li>
<a href="{toastmenu_link}" title="{toastmenu_ description}">{title}</a>
<div>{toastmenu_description}</div>
</li>
{/if}