O'Reilly logo

Building Websites with ExpressionEngine 2 by Leonard Murphy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating templates

To start with, build two templates: one for the CSS stylesheet and one that contains the HTML that defines the page structure and brings in your channel content. Since the CSS template will be used all over your website, it makes sense to put this in a separate template group called includes (which you will create).

For the page itself, use the index template in the site template group (created in Chapter 3).

  1. In the control panel, click on Design | Templates | Template Manager from the top menu (or if you created a custom tab for the Template Manager as part of Chapter 3, click that instead). Then select the New Group button, located above the list of existing template groups.
  2. Call the new template group includes. Do not duplicate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required