Issue Bug Closed

#90960Arguments not passed to Header and Footer partials in Fluid-based replacement for PageLayoutView

Georg Tiefenbrunn 04/06/20, 15:02 updated 04/21/20, 10:42

Description

  1. introduced Fluid-based replacement for PageLayoutView.

According to https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/10.3/Feature-90348-NewFluid-basedReplacementForPageLayoutView.html {item} (and some other variables) should be available in custom header/footer/preview templates.

Currently access to {item} (and the other variables) is only available in custom preview templates (no access in custom header/footer templates).

Preview is rendered by https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/backend/Resources/Private/Partials/PageLayout/Record/Preview.html and {item} is passed by arguments="{_all}":

<f:render partial="PageLayout/Record/{item.record.CType}/Preview" arguments="{_all}" optional="1">

Header and Footer are rendered by https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/backend/Resources/Private/Partials/PageLayout/Record.html without arguments:

 4 <f:render partial="PageLayout/Record/{item.record.CType}/Header" optional="1">
13 <f:render partial="PageLayout/Record/{item.record.CType}/Footer" optional="1">

Reviews 1