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

Displaying categories with your entries


To encourage visitors to browse by category, it makes sense to display the categories that each entry belongs to underneath the questions on the faqs/index page. For this, you will use the channel {categories} tag, which allows you to list the categories, along with the {comment_total} tag to show how many comments each entry has and the {comment_url_title_auto_path} tag to link to your single-entry page for comments.

Note

Note that the {comment_url_title_auto_path} tag auto-generates the URL to your category template, as defined in Admin | Channel Administration | Channels, under Edit Preferences for the FAQs channel, then under Path Settings. The option Comment Page URL should be set to http://localhost/faqs/browse.

  1. 1. Edit the faqs/index page and add the following code underneath the Read the answer here! permalink and above the {paginate} line.

    <p class="meta"><strong>Categories:
    </strong>{categories backspace="3"}<a href="{path...