TypoScript Quick Guide

From TYPO3Wiki

Jump to: navigation, search

Contents

Introduction

Navigating the Documentation Matrix for TypoScript info can be a pain so this document tries to point you in the right direction.

Feel free to update this page with information you have had difficulty in finding.

"Golden" Links

These links are very important, check here first:

* TypoScript Templates
* TSref

Plugins

...with Modern Template Building

You can do this like inserting the menu in the Modern Template Building Tutorial. For example, getting the content from the mininews plugin:

temp.myobj < plugin.tx_mininews_pi1

...with Futuristic Template Builiding (TemplaVoila)

When mapping you can link an object straight to a typoscript location, eg "lib.myobj" so the typoscript can simply be:

lib.myobj < plugin.tx_mininews_pi1

Plugin Commands and Properties

Properties can usually be found in the Template Object Browser or using the TSRef buttons. Sometimes I have found the only way to find properties is to look at the php code. The code usually resides in a file called ext/<<plugin name>>/pi<<number>>/class.<<something>>.php

Setting properties is quite simple: plugin.tx_mininews_pi1.CMD = FP plugin.tx_mininews_pi1.pidList = 22

Conditions

Both the links at the top of this document have good information on using conditions.

Personal tools