Skip to: Site menu | Main content

Scripting With TYPOScript

Customizing TYPO3 Even Further with TYPOScript

Scripting TYPO3 With TYPO Script

TYPOScript Code

The Typoscript scripting programming language is "declarative" like HTML and Javascript, which have important advantages for Web development. Typoscript is used to access, organize and control data on TYPO3 Web pages. Typoscript is a proprietary language that some identify as an abstraction language between PHP and HTML.

One distinct advantage of Typoscript is its allowance for copying and recycling of common extensions, without modifying the original PHP code. Static templates allow users to reuse Typoscript code. These static templates can be included in other templates, Web programmers can then reference the Typoscript code. Static templates cannot be edited.

TYPO3 is great for basic editing functions. More extensive Typoscript knowledge is needed for Web developers, designers and administrators. Backend and frontend content editors and authors do not need to have expertise in Typoscript to use TYPO3.

Typoscript programming is done using the fields in the Template Table.

The Template title is used for internal purposes only. The Website title will be added in front of the Page title for frontend page tags. The Constants section is used for establishing commonly occurring fixed values in Setup only; they are not used as programming variables. The Setup box will create the defaults, configuration and templates used for the Web pages - this is the Typoscript code to be used for the Web site.

The Resources section includes different supporting formats like true type fonts, images and stylesheets. TYPO3 offers a vast array of styles to choose from.

The Clear function allows users to erase field settings for the Constants and Setup sections. The Rootlevel selection allows users to set the starting page of the tree hierarchy. The Include Static option allows users to include the default static templates for TYPO3. The Include Basis Template allows users to insert templates they have created themselves. The Template on Next Level permits users to place the templates in the tree hierarchy. The Descriptions area is for notes, users may need to reference.

TYPO3 modules are represented as TypoScript code. A convenient drop-down box makes content readily available. Typoscript permits simplified embedding of multimedia (MP3 audio and video) into pages. TYPO3 allows for membership sites to create user databases for collection of information.