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

Datatypes


Like other programming languages TypoScript has datatypes, but there are some differences between datatypes in TypoScript and in other languages. There are too many datatypes to list here, so we will only look at the basic types here.

Simple Datatypes

Some of the datatypes in TypoScript occur in other programming languages, but others will be less familiar. The following table shows you some of the more important datatypes:

Data type

Description

boolean

The truth content of a statement is represented as a boolean value. By default, the values used are 1 for true and 0 for false.

int

An integer is represented by an int value. For example, the xy property of a GIFBUILDER object, which determines the size of the graphic, is represented by two int values—by setting xy = 200, 300, a graphic of breadth 200 and height 300 pixels is generated.

string

The datatype string represents a string of characters. The altText property of a GIFBUILDER object, which is used to assign...