FluidTYPO3 / flux

TYPO3 extension Flux: Dynamic Fluid FlexForms
https://fluidtypo3.org
146 stars 213 forks source link

ColPos update in Typo3 11 not working #1993

Closed trokohl closed 1 year ago

trokohl commented 2 years ago

The "initAfter" signal was removed in Typo3 11.

\FluidTYPO3\Flux\Integration\HookSubscribers\EditDocumentController->requireColumnPositionJavaScript was not called. (ext_localconf.php)

Workaround is to add:

        if (TYPO3_MODE =="BE" )   {
            $editController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\FluidTYPO3\Flux\Integration\HookSubscribers\EditDocumentController::class);
            $editController->requireColumnPositionJavaScript();
         }

in ext_localconf.php.

kraemer-igroup commented 2 years ago

Thank you, this way I could solve my issue #1966!

NamelessCoder commented 1 year ago

Fixed with 1308ec1c0205adcc88044926d566dfa204eb4403

kraemer-igroup commented 1 year ago

UPDATE: sorry, my bad @NamelessCoder, it seems to be working now without the workaround! There was another problem with PHP 8 and an undefined array warning (https://github.com/FluidTYPO3/flux/blob/development/Classes/Integration/FormEngine/UserFunctions.php#L91). Everything looks fine now. Did you maybe link the wrong ticket when closing this one?


Hi @NamelessCoder and sorry for the late reply, but this task is not fixed yet.

With the workaround provided by @trokohl I could fix my issue #1966 but there is no solution provided by the flux extension and with flux 9.7.2 this workaround is not working anymore.

As described in #1966 unfortunately I have no idea how to fix this issue. It seems the necessary javascript can not be loaded but is needed for the contentContainer option to work.

NamelessCoder commented 1 year ago

Did you maybe link the wrong ticket when closing this one?

Yes, copy-paste buffer screwup. I adjusted the comment.

The JS inclusion triggers are now migrated to PSR-14 events because the old hooks were removed in TYPO3. Good to hear that it works now without workarounds!

kraemer-igroup commented 1 year ago

Thank you for fixing the issue and adjusting your comment!