Created
September 27, 2024 12:16
-
-
Save sorenmalling/7d7fc77a16aab6262c6e0980d192c44e to your computer and use it in GitHub Desktop.
TYPO3 rendering with PAGEVIEW and page-content dataProcessing
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
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/ | |
} |
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
<main> | |
<f:for each="{content.main.records}" as="record"> | |
<f:cObject typoscriptObjectPath="{record.fullType}" data="{record}" /> | |
</f:for> | |
</main> |
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
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