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

Operators


There are many operators in TypoScript. You have already seen some of these operators in earlier sections of this chapter.

Value Assignment

You have already used the most important operator, the assignment operator = (equality sign). This operator can be used to define an object by assigning another object to it. It is also used to give properties their values. The syntax is always the same. To the left of the equality sign is the signifier of the object and/or the property. Everything to the right of the equality sign is assigned to the object or property as its value.

page = PAGE
page.typeNum = 0
page.10 = TEXT
page.10.value = Hello World!

In this example the = operator is used several times. The line page = PAGE creates an object of the type PAGE and with the name page. typeNum is a property of the object type PAGE. Here this property is assigned the value 0. In the third line page.10 is defined as an object of the type TEXT. Finally you assign the value Hello World! to the...