Project

General

Profile

Actions

Bug #90960

closed

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

Added by Georg Tiefenbrunn over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2020-04-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

#90348 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">
Actions

Also available in: Atom PDF