Bug #89158
opendefaultHeaderType register no longer works
0%
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