Open monosize opened 1 month ago
Sounds fair enough. Do you think we should add a Form option so people can control whether they want to append or replace, based on options
of flux:form
in the template?
That makes sense. I would see adding as the default. Overwriting can be set explicitly.
I have checked that the bug exists in the
dev-development
branch YesI have checked that there are no already open issues or recently closed issues about this bug Yes
Describe the bug If you use the preview section in a page template, the content of the header is completely overwritten. The content of other extensions such as ce_seo is not displayed.
To Reproduce use a preview section.
Expected behavior
https://github.com/FluidTYPO3/flux/blob/ffa2dce6a586cee367d5ad6c2d6b3660c42826b8/Classes/Integration/Event/ModifyPageLayoutContentEventListener.php#L46
$event->setHeaderContent($previewContent); If other extensions have previously added content to the header, this will now be overwritten. It is better to use $event->addHeaderContent($previewContent);