-
Christian Kuhn authored
The page module provides ModifyPageLayoutContentEvent to add content before and/or after the main module content. Extensions like ext:sys_note can use this to render own content. Unfortunately, this content is *within* the default page module form tag, which prevents extension content to create own POST forms. The patch changes the page module HTML slightly to not encapsulate the event content within the form tag. The same situation appears in info module "page information" with "drawFooterHook". The situation here is worse, since the main form tag is rendered by InfoModuleController and not PageInformationController. This "module function" construct in info module is still an ugly mess and really needs an overhaul. For now, the patch adds a hack in PageInformationController to close the outside form, then adds the hook content, then opens another form for valid HTML. Resolves: #96543 Related: #96542 Related: #96526 Releases: main Change-Id: I9eba97b85284cfbd5c1874bbef8c00a533cb4bff Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73018 Tested-by: core-ci <typo3@b13.com> Tested-by: Stefan Bürk <stefan@buerk.tech> Tested-by: Benni Mack <benni@typo3.org> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Benni Mack <benni@typo3.org> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
b8dd0cf5