Project

General

Profile

Actions

Bug #100758

open

Viewhelpers and other things do not work outside of extbase context

Added by Markus Klein about 1 year ago. Updated 2 months ago.

Status:
Accepted
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2023-04-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Related issues 5 (0 open5 closed)

Related to TYPO3 Core - Bug #100759: f:translate does not take overrides of labels in TypoScript into account anymoreResolved2023-04-26

Actions
Related to TYPO3 Core - Bug #100760: f:translate: Provide possibility to set a default extensionNameClosed2023-04-26

Actions
Related to TYPO3 Core - Task #98377: Avoid Extbase Request init in StandaloneViewClosed2022-09-19

Actions
Related to TYPO3 Core - Task #101729: [TASK] Allow f:link.action and f:uri.action without ExtbaseClosedStefan Bürk2023-08-22

Actions
Has duplicate TYPO3 Core - Bug #101141: f:form and f.link.action request implementing ServerRequest instead of RequestInterfaceClosed2023-06-21

Actions
Actions

Also available in: Atom PDF