Created
January 13, 2014 12:22
-
-
Save alexanderschnitzler/8399398 to your computer and use it in GitHub Desktop.
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
include: NodeTypes/Arrow.ts2 | |
include: NodeTypes/TextCarousel.ts2 | |
include: NodeTypes/MenuWithLogo.ts2 | |
include: NodeTypes/Pod.ts2 | |
include: NodeTypes/Text.ts2 | |
include: NodeTypes/Pagetitle.ts2 | |
include: NodeTypes/TimelinePlugin.ts2 | |
include: NodeTypes/TimelineItem.ts2 | |
include: NodeTypes/ContactInfo.ts2 | |
include: NodeTypes/Form.ts2 | |
include: NodeTypes/Form.ts2 | |
include: NodeTypes/GalleryItem.ts2 | |
include: NodeTypes/FooterMenu.ts2 | |
include: NodeTypes/Slider.ts2 | |
include: NodeTypes/Custom.ts2 | |
include: resource://RobertLemke.Plugin.Blog/Private/TypoScripts/Library/NodeTypes.ts2 | |
include: resource://Lelesys.Plugin.News/Private/TypoScripts/Library/NodeTypes.ts2 | |
namespace: TypoScript=TYPO3.TypoScript | |
/** | |
* Root TypoScript template for the Neos demo website | |
*/ | |
page = Page { | |
head { | |
stylesheets { | |
site = TypoScript:Template { | |
templatePath = 'resource://Neos.Bootsite/Private/Templates/Page/Home.html' | |
sectionName = 'stylesheets' | |
} | |
} | |
javascripts { | |
site = TypoScript:Template { | |
templatePath = 'resource://Neos.Bootsite/Private/Templates/Page/Home.html' | |
sectionName = 'scripts' | |
} | |
} | |
titleTag { | |
// Overwrite the title tags content with a collection to create a breadcrumb | |
content = TYPO3.TypoScript:Collection { | |
// Retrieve all parent document nodes excluding the homepage | |
collection = ${q(documentNode).add(q(documentNode).parents()).slice(0, -1).get()} | |
itemName = 'node' | |
iterationName = 'nodeIterator' | |
// Implode node titles with a dash | |
itemRenderer = ${q(node).property('title') + (nodeIterator.isLast ? '' : ' - ')} | |
// Always add general site name as suffix | |
@process.siteName = ${(value ? value + ' - ' : '') + 'TYPO3 Neos'} | |
} | |
} | |
} | |
// This query checks if the second level menu has items and sets an additional class for the body | |
bodyTag.attributes.class = ${q(node).parents().count() >= 1 && q(node).children('[instanceof TYPO3.Neos:Document]').filter('[_hiddenInIndex=false]').count() > 0 ? 'has-subpages' : ''} | |
body { | |
templatePath = 'resource://Neos.Bootsite/Private/Templates/Page/Home.html' | |
sectionName = 'body' | |
parts { | |
mainMenu = Menu { | |
entryLevel = 1 | |
templatePath = 'resource://Neos.Bootsite/Private/Templates/TypoScriptObjects/MenuWithLogo.html' | |
maximumLevels = 3 | |
site = ${site} | |
} | |
} | |
sectionid = ${q(node).property('sectionid')} | |
footermenu = ${q(node).property('footermenu')} | |
content { | |
// Default content section | |
main = PrimaryContent { | |
nodePath = 'main' | |
} | |
containerblack = ContentCollection { | |
nodePath = 'containerblack' | |
} | |
arrowdown = ContentCollection { | |
nodePath = 'arrowdown' | |
} | |
logo = ContentCollection { | |
nodePath = 'logo' | |
} | |
headtext = ContentCollection { | |
nodePath = 'headtext' | |
} | |
lefttext = ContentCollection { | |
nodePath = 'lefttext' | |
} | |
righttext = ContentCollection { | |
nodePath = 'righttext' | |
} | |
pods = ContentCollection { | |
nodePath = 'pods' | |
} | |
} | |
javascripts.site = TypoScript:Template { | |
templatePath = 'resource://Neos.Bootsite/Private/Templates/Page/Home.html' | |
sectionName = 'bodyScripts' | |
} | |
} | |
} | |
home < page | |
home { | |
body { | |
content { | |
main = PrimaryContent { | |
nodePath = 'main' | |
} | |
containerblack = ContentCollection { | |
nodePath = 'containerblack' | |
} | |
arrowdown = ContentCollection { | |
nodePath = 'arrowdown' | |
} | |
} | |
} | |
} | |
secondary < page | |
secondary { | |
body { | |
templatePath = 'resource://Neos.Bootsite/Private/Templates/Page/Secondary.html' | |
parts { | |
mainMenu = Menu { | |
entryLevel = 1 | |
templatePath = 'resource://Neos.Bootsite/Private/Templates/TypoScriptObjects/MainMenu.html' | |
maximumLevels = 3 | |
site = ${site} | |
} | |
} | |
content { | |
logo = ContentCollection { | |
nodePath = 'logo' | |
} | |
headtext = ContentCollection { | |
nodePath = 'headtext' | |
} | |
lefttext = ContentCollection { | |
nodePath = 'lefttext' | |
} | |
righttext = ContentCollection { | |
nodePath = 'righttext' | |
} | |
pods = ContentCollection { | |
nodePath = 'pods' | |
} | |
} | |
// A shared header which can be edited from all pages | |
header = TYPO3.Neos:ContentCollection { | |
nodePath = ${q(site).children('header').property('_path')} | |
collection = ${q(site).children('header').children()} | |
} | |
// A shared footer which can be edited from all pages | |
footer = TYPO3.Neos:ContentCollection { | |
nodePath = ${q(site).children('footer').property('_path')} | |
collection = ${q(site).children('footer').children()} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment