Skip to content

Instantly share code, notes, and snippets.

@froemken
Last active May 23, 2022 17:16
Show Gist options
  • Select an option

  • Save froemken/af945ea2a3a8dfaaa6089666bf44e581 to your computer and use it in GitHub Desktop.

Select an option

Save froemken/af945ea2a3a8dfaaa6089666bf44e581 to your computer and use it in GitHub Desktop.
config.contentObjectExceptionHandler = 0
# Default PAGE object:
page = PAGE
page.10 = FLUIDTEMPLATE
page.10.file = fileadmin/template.html
page.10 {
dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
dataProcessing.10 {
table = pages
pidInList = 1
as = subPages
orderBy = pages.sorting
dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
dataProcessing.10 {
references.fieldName = media
}
dataProcessing.20 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
dataProcessing.20 {
table = tt_content
as = inhalte
pidInList.field = uid
}
}
dataProcessing.20 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
dataProcessing.20 {
#special = directory
#special.value = <parent page uid>
levels = 2
as = mainMenu
dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
dataProcessing.10 {
references.fieldName = media
}
}
}
HTML:
<f:debug>{_all}</f:debug>
<ul>
<f:for each="{subPages}" as="page">
<li>
<f:for each="{page.files}" as="file">
<f:image image="{file}" width="320" height="280" />
</f:for>
<f:link.page pageUid="{page.data.uid}">{page.data.title}</f:link.page>
</li>
</f:for>
</ul>
@froemken
Copy link
Copy Markdown
Author

froemken commented Aug 13, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment