flux icon indicating copy to clipboard operation
flux copied to clipboard

ColPos update in Typo3 11 not working

Open trokohl opened this issue 3 years ago • 1 comments

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.

trokohl avatar Sep 01 '22 10:09 trokohl

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

kraemer-igroup avatar Sep 16 '22 14:09 kraemer-igroup

Fixed with 1308ec1c0205adcc88044926d566dfa204eb4403

NamelessCoder avatar Oct 25 '22 09:10 NamelessCoder

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.

kraemer-igroup avatar Jan 12 '23 10:01 kraemer-igroup

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!

NamelessCoder avatar Jan 12 '23 14:01 NamelessCoder

Thank you for fixing the issue and adjusting your comment!

kraemer-igroup avatar Jan 12 '23 14:01 kraemer-igroup