Skip to content

Instantly share code, notes, and snippets.

@sorenmalling
Created September 27, 2024 12:16
Show Gist options
  • Save sorenmalling/7d7fc77a16aab6262c6e0980d192c44e to your computer and use it in GitHub Desktop.
Save sorenmalling/7d7fc77a16aab6262c6e0980d192c44e to your computer and use it in GitHub Desktop.
TYPO3 rendering with PAGEVIEW and page-content dataProcessing
styles.templates {
templateRootPath = EXT:site_bizzup/Resources/Private/Templates/Content/
partialRootPath = EXT:site_bizzup/Resources/Private/Partials/Content/
layoutRootPath = EXT:site_bizzup/Resources/Private/Layouts/Content/
}
<main>
<f:for each="{content.main.records}" as="record">
<f:cObject typoscriptObjectPath="{record.fullType}" data="{record}" />
</f:for>
</main>
page = PAGE
page {
typeNum = 0
10 = PAGEVIEW
10 {
paths {
100 = EXT:site_bizzup/Resources/Private/Templates/
}
dataProcessing {
20 = page-content
}
}
}
lib.content = FLUIDTEMPLATE
lib.content {
# add custom processing, variables etc. if you need
templateName = TEXT
templateName {
field = CType
case = ucfirst
}
templateRootPaths {
100 = {$styles.templates.templateRootPath}
}
partialRootPaths {
100 = {$styles.templates.partialRootPath}
}
layoutRootPaths {
100 = {$styles.templates.layoutRootPath}
}
}
tt_content.text =< lib.content
tt_content.text {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment