Book Image

Mastering TypoScript: TYPO3 Website, Template, and Extension Development

Book Image

Mastering TypoScript: TYPO3 Website, Template, and Extension Development

Overview of this book

Free, open-source, flexible, and scalable, TYPO3 is one of the most powerful PHP content management systems. It is well suited for creating intranets and extranets for the enterprise. While providing an easy-to-use web interface for non-technical authors and editors of content, its messaging and workflow system enable shared authoring and collaboration. TYPO3 provides flexible and powerful interfaces for both content editors and administrators, giving them full control of the core aspects the system. However for developers who need to customize the system, TYPO3 offers a powerful configuration language called TypoScript. Good knowledge of TypoScript is really a prerequisite for implementing complex applications with TYPO3 and gives developers full control over the configuration of TYPO3 and its template engine. TypoScript enables the complete output template to be created and manipulated, giving you full control over the layout of the site. TypoScript also allows you to integrate dynamic contents, JavaScript-based menus, Flash, Graphics, etc. with ease. You have maximum control over the design of the website and can control all options that would otherwise be addressed by HTML-simple text output, formatting, and much more. TypoScript also allows you to generate graphics at run time and display different content dynamically.
Table of Contents (19 chapters)
Mastering TypoScript: TYPO3 Website, Template, and Extension Development
Credits
About the Author
Preface

Text Menus


The simplest type of menu is the text menu (even though the other menus are not any more difficult to create). TMENU creates a text-based menu from the page tree and the page titles defined there. The advantage of these menus lies in their speed. Although the graphical menus created by TYPO3 are relatively quick, they are noticeably slower than text menus.

TMENU is specified below HMENU as can be seen from the following example:

page.10.marks.MENU = HMENU
page.10.marks.MENU.1 = TMENU
page.10.marks.MENU.1.NO {
linkWrap = <b>|</b><br />
}

This is the syntax that you use to create a text menu. There is a line break after each entry. This is done with linkWrap, using which the menu entries that are included using the<a> tag are enclosed within the stated tags. With NO you can define the behavior of the NO state; i.e. the normal state.

This results in the following text in the front end (reduced to one entry):

<b><a href="index.php?id=11" onfocus=...