Last active
August 29, 2015 14:24
-
-
Save sorenmalling/1b65494efd37ed473478 to your computer and use it in GitHub Desktop.
Replacing TYPO3.TypoScript:Template with TYPO3.TypoScript:Array for body rendering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| prototype(Vendor.Site:IncludeCss) < prototype(TYPO3.TypoScript:Tag) { | |
| tagName = 'link' | |
| attributes { | |
| type = 'text/css' | |
| rel = 'stylesheet' | |
| href = TYPO3.TypoScript:ResourceUri | |
| } | |
| } | |
| prototype(Vendor.Site:IncludeJs) < prototype(TYPO3.TypoScript:Tag) { | |
| tagName = 'script' | |
| attributes { | |
| type = 'text/javascript' | |
| src = TYPO3.TypoScript:ResourceUri | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| prototype(Vendor.Site:Page) < prototype(Page) { | |
| head { | |
| stylesheets { | |
| screen = Vendor.Site:IncludeCss { | |
| attributes.href.path = 'resource://Vendor.Site/Public/Styles/screen.css' | |
| attributes.media = 'screen' | |
| } | |
| print = Vendor.Site:IncludeCss { | |
| attributes.href.path = 'resource://Vendor.Site/Public/Styles/print.css' | |
| attributes.media = 'print' | |
| } | |
| } | |
| javascripts { | |
| jquery = Vendor.Site:IncludeJs { | |
| attributes.src = 'https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js' | |
| } | |
| cookie = Vendor.Site:IncludeJs { | |
| attributes.src.path = 'resource://Vendor.Site/Public/JavaScript/jquery.cookie.js' | |
| } | |
| svhshiv = Vendor.Site:IncludeJs { | |
| attributes.src.path = 'resource://Vendor.Site/Public/JavaScript/svg-shiv.js' | |
| } | |
| sticky = Vendor.Site:IncludeJs { | |
| attributes.src.path = 'resource://Vendor.Site/Public/JavaScript/jquery.sticky.js' | |
| } | |
| flexslider = Vendor.Site:IncludeJs { | |
| attributes.src.path = 'resource://Vendor.Site/Public/JavaScript/jquery.flexslider-min.js' | |
| } | |
| instafeed = Vendor.Site:IncludeJs { | |
| attributes.src.path = 'resource://Vendor.Site/Public/JavaScript/instafeed.min.js' | |
| } | |
| main = Vendor.Site:IncludeJs { | |
| attributes.src.path = 'resource://Vendor.Site/Public/JavaScript/main.js' | |
| } | |
| } | |
| } | |
| bodyTag { | |
| attributes.class = ${site == node ? 'front' : ''} | |
| } | |
| body > | |
| body = TYPO3.TypoScript:Tag { | |
| @position = 'after bodyTag' | |
| tagName = 'div' | |
| attributes.id = 'page' | |
| content = TYPO3.TypoScript:Array { | |
| cookie = TYPO3.TypoScript:Tag { | |
| tagName = 'div' | |
| attributes { | |
| class = 'row' | |
| id = 'cookieprompt' | |
| } | |
| content = TYPO3.TypoScript:Tag { | |
| tagName = 'div' | |
| attributes.class = 'container-fullwidth' | |
| content = ' COOKIE WARNING ' | |
| } | |
| } | |
| header = TYPO3.TypoScript:Tag { | |
| tagName = 'header' | |
| attributes.id = 'header' | |
| content = TYPO3.TypoScript:Array { | |
| search = TYPO3.TypoScript:Template { | |
| templatePath = 'resource://Vendor.Site/Private/Templates/Page/Header/Search.html' | |
| } | |
| servicenavigation = Vendor.Site:RowWithFullWidthContainer { | |
| content = TYPO3.TypoScript:Tag { | |
| tagName = 'ul' | |
| content = TYPO3.TypoScript:Array { | |
| servicemenu = Vendor.Site:ServiceMenu | |
| } | |
| } | |
| } | |
| } | |
| } | |
| content = ContentCollection { | |
| nodePath = 'main' | |
| tagName = 'main' | |
| attributes { | |
| id = 'content' | |
| } | |
| } | |
| instagram = Vendor.Site:InstagramFeed | |
| footer = TYPO3.TypoScript:Template { | |
| templatePath = 'resource://Vendor.Site/Private/Templates/Page/Partials/Footer.html' | |
| node = ${node} | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| prototype(Vendor.Site:Row) < prototype(TYPO3.TypoScript:Tag) { | |
| tagName = 'div' | |
| attributes { | |
| class = 'row' | |
| } | |
| } | |
| prototype(Vendor.Site:RowWithFullWidthContainer) < prototype(Vendor.Site:Row) { | |
| content = TYPO3.TypoScript:Tag { | |
| tagName = 'div' | |
| attributes { | |
| class = 'container-fullwidth' | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment