TYPO3 Phoenix features a revised version of TYPO3’s powerful object definition syntax. The main design goals were consistency, simplicity and extensibility. In this session you’ll learn about the new object-oriented approach, the improved syntax, how you get full control over the rendered output and if stdWrap and friends made it to the next version. The examples from this talk will help you to experiment with your own TypoScripts on your own TYPO3 Phoenix installation.
1. Robert Lemke
TypoScript 2.0
T3CON10 Frankfurt
Samstag, 2. Oktober 2010
2. Robert Lemke
chief architect of TYPO3 Phoenix and FLOW3
co-founder of the TYPO3 Association
34 years old
lives in Lübeck, Germany
1 wife, 1 daughter, 1 espresso machine
likes drumming
Samstag, 2. Oktober 2010
4. TypoScript 2.0 is an object-oriented
view definition language
(don't use it for plain configuration anymore)
TypoScript 2.0 T3CON10 Frankfurt
Samstag, 2. Oktober 2010
6. CASE
myPage = Page
myPage.title = "Foo"
foo.color = RED
TypoScript 2.0 T3CON10 Frankfurt
Samstag, 2. Oktober 2010
7. Literals
foo = 'Single quoted'
bar = "Double quoted"
baz = "I use " and ' within a quoted literal"
TypoScript 2.0 T3CON10 Frankfurt
Samstag, 2. Oktober 2010
8. Comments
foo = Bar // <- here's a comment
# baz = Quux (not active)
/*
page = Page
*/
TypoScript 2.0 T3CON10 Frankfurt
Samstag, 2. Oktober 2010
9. Type Safe
thePurpose = 42
theSalary = 41.66
theTruth = FALSE
TypoScript 2.0 T3CON10 Frankfurt
Samstag, 2. Oktober 2010
12. Variables
myText = Text
myText.$name = "audience"
myText.headline = "Hello $name!"
TypoScript 2.0 T3CON10 Frankfurt
Samstag, 2. Oktober 2010
13. TypoScript 2.0 T3CON10 Frankfurt
Samstag, 2. Oktober 2010
14. Nodes
Node Tree instead of Page Tree
Content Types
TypoScript 2.0 T3CON10 Frankfurt
Samstag, 2. Oktober 2010
15. DEMO
TypoScript 2.0 T3CON10 Frankfurt
Samstag, 2. Oktober 2010
16. And stdWrap?
TypoScript 2.0 T3CON10 Frankfurt
Samstag, 2. Oktober 2010
17. Processors
myText = Text
myText.text = "Hey you guys really rock and what I always wanted to say
myText.text << 2.crop(maximumCharacters = 20)
myText.text << 1.wrap('<em>', '</em>')
TypoScript 2.0 T3CON10 Frankfurt
Samstag, 2. Oktober 2010
18. Processors
TypoScript 2.0 T3CON10 Frankfurt
Samstag, 2. Oktober 2010
19. Customising TypoScript
Create new Content Types
Tweak or override Fluid Templates
Create new TypoScript Object Types
TypoScript 2.0 T3CON10 Frankfurt
Samstag, 2. Oktober 2010