#100758Viewhelpers and other things do not work outside of extbase context
Description
Using f:form* or f:*.action viewhelpers does not work anymore outside of extbase context. For instance within StandaloneView or FLUIDTEMPLATE.
StandaloneView is regularily used for rendering e-mail and there of course links should be generated.
It should be checked if this still works:
- f:form viewhelper do correctly prefix the fieldnames. E.g. having an non-extbase plugin using StandaloneView the prefix should be like `tx_myext_pi1[name]` for a name input field
——
Collection of notes from other forge issues:
f:form – Exception:
(1/1) #1639821904 RuntimeException
ViewHelper f:form can be used only in extbase context and needs a request implementing extbase RequestInterface.
/vendor/typo3/cms-fluid/Classes/ViewHelpers/FormViewHelper.php line 148
f:link.action – Exception
(1/1) #1639818540 RuntimeException
ViewHelper f:link.action can be used only in extbase context and needs a request implementing extbase RequestInterface.
/vendor/typo3/cms-fluid/Classes/ViewHelpers/Link/ActionViewHelper.php line 81
In both cases the “TYPO3\CMS\Core\Http\ServerRequest object” is in the $request instead the RequestInterface.
Reviews 3
- 12.4 80908[TASK] Allow f:link.action and f:uri.action without Extbase
- main 80037[TASK] Allow f:link.action and f:uri.action without Extbase
- main 80186[WIP][TASK] Provide extbase request combat in non-extbase view context
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". The changes above were merged or abandoned: read them before you start. How to create a patch
- Commit message
-
[BUGFIX] Viewhelpers and other things do not work outside of extbase context Resolves: #100758 Releases: main