Book Image

TYPO3 Templates

By : Jeremy Greenawalt
Book Image

TYPO3 Templates

By: Jeremy Greenawalt

Overview of this book

<p>The template systems in TYPO3 make it one of the most powerful content management systems available today, but they seem too complex for many users. Site developers who are able to learn how to use them efficiently can build more extensible sites quicker and more customized for their users.</p> <p>This book is a step-by-step guide for building and customizing templates in TYPO3 using the best solutions<br />available. It takes the readers through one complete example to create a fully functional demonstration site using TypoScript, TemplaVoila, and other core TYPO3 technologies.</p> <p>This book starts with the basics of creating an example TYPO3 site before showing you how to add your own stylesheets and enhanced JavaScript to the template. You learn about the different types of menus and navigation, and you can try out each one with practical examples in the book. The book shows how to create multiple templates for sections or individual pages in TYPO3 and how you can make a new template completely from scratch for a newsletter. Just as importantly, you learn how to update the editing experience and impress your clients with a custom back-end. Finally, you will learn how to specialize for browsers and internationalize your TYPO3 site with simple template updates.</p>
Table of Contents (18 chapters)
TYPO3 Templates
Credits
About the Author
Acknowledgment
About the Reviewers
Preface
Index

Creating a basic stylesheet


Most of the time we will be given the HTML and CSS files for a website at the same time, so we can just place them both in the fileadmin/templates/ directory before we run the TemplaVoila Wizard. To avoid information overload, we are handling the HTML template and CSS as two different steps. We've already added the HTML template to TYPO3, so now we just need to add our CSS files.

We are going to be adding more HTML template files to our site later in this tutorial, so we will create a css/ directory inside the fileadmin/templates/ directory just to keep our files organized. If you have CSS files ready, copy them to the fileadmin/templates/css/ directory now. You can use any filenames that you like, but for the rest of this tutorial the main stylesheet will be referred to as style.css. If you don't have a CSS file ready, you can look at my file below which includes some browser reset rules from Eric Meyer (http://meyerweb.com/eric/tools/css/reset/), basic styling...