Project

General

Profile

Actions

Bug #89158

open

defaultHeaderType register no longer works

Added by Stig Nørgaard Færch over 4 years ago.

Status:
New
Priority:
Should have
Assignee:
Category:
Fluid Styled Content
Target version:
-
Start date:
2019-09-12
Due date:
% Done:

0%

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

Description

It can be discussed if this is a bug or a feature.
The reason I have chosen to report it as a bug, is that before ext:fluid_styled_content this feature worked.

So...
Before ext:fluid_styled_content it was possible to set the register variable defaultHeaderType to decide which header type should be used when default was selected as type. Using the register for this, made it possible to choose the default header type, for each content area.
With ext:fluid_styled_content we only have a general default header type, which means all content areas have the same type.

I made a simple solution, where I in the Header.html partial use a TypoScript Object in fluid to fetch the register value (or the styles.content.defaultHeaderType constant as fallback)
https://gist.github.com/stigfaerch/23595d8eab8ccc9b1eeb81d09c5df410

I also tried another solution where I made a custom getRegister viewhelper. This also worked fine, but required a bit more code.

No data to display

Actions

Also available in: Atom PDF