• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
TypoScript 2.0
 

TypoScript 2.0

on

  • 2,969 views

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 ...

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.

Statistics

Views

Total Views
2,969
Views on SlideShare
2,969
Embed Views
0

Actions

Likes
2
Downloads
12
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    TypoScript 2.0 TypoScript 2.0 Presentation Transcript

    • Robert Lemke TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • 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 drummingSamstag, 2. Oktober 2010
    • Design Goals Clear Purpose Consistency Object-Oriented Extensible TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • TypoScript 2.0 is an object-oriented view definition language (dont use it for plain configuration anymore) TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • TypoScript = { TypoScriptLine LineBreak }; New TypoScriptLine = ( Comment | ConfinementBlock | Declaration | ParseCondition | Ob ConfinementBlock = ObjectPath "{" LineBreak { TypoScriptLine } "}" ; Declaration = ( IncludeDeclaration | NamespaceDeclaration ); Syntax Comment = ( SingleLineComment | BlockComment ); ObjectDefinition = ObjectPath ValueOperation; IncludeDeclaration = "include" ":" "source" "=" DoubleQuote Resource DoubleQuote NamespaceDeclaration = "namespace" ":" NamespaceIdentifier "=" ObjectName; SingleLineComment = ( "#" | "//" ) { UnicodeCharacter }; BlockComment = "/*" { UnicodeCharacter | LineBreak } "*/"; ObjectPath = [ "." ] ObjectIdentifier { "." ObjectIdentifier } ( [ "." VariableName ] | [ "." VariableName = "$" Identifier; ValueOperation = ( ValueAssignment | ValueCopy | ValueReference | ValueUnset | ValueP ValueAssignment = "=" ( Literal | ObjectType | Constant ); ValueCopy = "<" ObjectPath; ValueReference = "=<" ObjectPath; ValueUnset = ">"; TypoScript 2.0 T3CON10 Frankfurt ValueProcessing = "<<" ArrayOffset "." [ ObjectName "->" ] MethodName "(" { MethoSamstag, 2. Oktober 2010
    • CASE myPage = Page myPage.title = "Foo" foo.color = RED TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • Literals foo = Single quoted bar = "Double quoted" baz = "I use " and within a quoted literal" TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • Comments foo = Bar // <- heres a comment # baz = Quux (not active) /* page = Page */ TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • Type Safe thePurpose = 42 theSalary = 41.66 theTruth = FALSE TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • Assignments page = Page page < coolPage page.title =< thirdPage.title page > TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • Namespaces namespace: default = F3PlusPlusTypoScript page = Page TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • Variables myText = Text myText.$name = "audience" myText.headline = "Hello $name!" TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • Nodes Node Tree instead of Page Tree Content Types TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • DEMO TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • And stdWrap? TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • 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 FrankfurtSamstag, 2. Oktober 2010
    • Processors TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • Customising TypoScript Create new Content Types Tweak or override Fluid Templates Create new TypoScript Object Types TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • Questions Email: robert@typo3.org Blog: http://robertlemke.de/blog Twitter: @t3rob Slides: http://slideshare.net/rlmp TypoScript 2.0 T3CON10 FrankfurtSamstag, 2. Oktober 2010
    • Samstag, 2. Oktober 2010