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

Conditions


Conditions will let you create conditioned queries similar to the if structures of other languages.

Browsers

Identifier

Browser

acrobat

Adobe Acrobat

avantgo

AvantGo

ibrowse

IBrowse

lynx

Lynx

msie

Microsoft Internet Explorer

netscape

Netscape Communicator

opera

Opera

php

PHP fopen

teleport

Teleport Pro

unknown

other

Syntax:

[browser= string]

Example:

[browser = netscape]

Browser-Version

Operator

Function

Blank

The value has to be part of the beginning of the version identifier.

=

The value has to be exactly the same.

>

The browser has to be more recent than the specified value.

<

The browser is older than the specified value.

Syntax:

[version = integer]

Example:

[version => 4]

Operating System

Identification

Operating system

amiga

Amiga

unix_hp

HP-UX

linux

Linux

unix_sgi

SGI/IRIX

mac

Macintosh

unix_sun

SunOS

win311

Windows3.11

win95

Windows 95

win98

Windows 98

winNT

Windows NT

Syntax:

[system = string]

Example:

[system = mac, win]

Device

Identification

Equipment

grabber

Grabber

pda

PDAs

robot

indexing robot

wap

WAP-capable cell phone

Syntax:

[device = string]

Example:

[device = wap, pda]

Language

Syntax:

[language = string]

Example:

[language = de]

Other Options

Condition

Description

[dayofmonth...]

Day of the month (1-31)

[dayofweek...]

Day of the week (Sunday = 0, Saturday = 6)

[hostname...]

Same value as with getenv("REMOTE_ADDR") in PHP.

[hour...]

The value as floating-point number is compared with the server time. Possible values are>, <, and [blank].

[language...]

The values have to be exactly the same as getenv("HTTP_ACCEPT_LANGUAGE") from PHP.

[loginUser...]

The UID of the desired FE-user is specified

[minute...]

Minute (0-59)

[month...]

Month (January = 1, December = 12)

[PIDinRootline...]

Checks whether there is a page below the defined page.

[PIDupinRootline...]

Works like PIDinRootline, but the current page is excluded.

[treeLevel...]

Checks whether the last rootline element is on the same level as defined here.

[usergroup...]

The UID of the designated user group is specified.