Bug #88150
closedViewHelper f:be.container - requireJs error
0%
Description
Hello,
while using f:be.container in FLUID layouts (with and without properties) in your BE-Module the following error appears:
"Uncaught TypeError: require is not a function"
( require(["TYPO3/CMS/Backend/ContextHelp"]); )
It seems like requireJS (the command require itself) does not exist at this time.
My workaround is to use the f:be.pageRenderer ViewHelper and load the ContextHelp-Module and the jumpURL-function manually.
Updated by Christian Hackl over 5 years ago
- Subject changed from ViewHelper f:be.container to ViewHelper f:be.container - requireJs error
- Tags set to requireJs, Module, Backend
The same issue appears while using "<be:moduleLayout>"
Updated by Andreas Kienast over 4 years ago
- Status changed from New to Needs Feedback
Where do you use this ViewHelper exactly? This ViewHelper is designed to be used in Extbase context only.
In a non-extbase context you may use <be:moduleLayout> (http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers) instead.
Updated by Christian Hackl over 4 years ago
@Andreas Otto † Fernandez
What do you mean "in Extbase context"?
For example, I would use it here:
https://github.com/groundstack-org/gs_monitor_observer/blob/master/Resources/Private/Layouts/Backend/Default.html
(instead of the "f:be.pageRenderer" and instead of the following script tag "<script><f:format.raw>{script}</f:format.raw></script>" - which is a workaround for js methods: jumpToUrl() and jumpExt())
Updated by Christian Hackl over 4 years ago
The viewhelper dukumentation does not show me any real difference between:
and
The description is identical for both... so it doesn't say anything - when, where, where, what, how and why should or can be used.
Updated by Christian Kuhn almost 3 years ago
- Related to Task #94225: Deprecate f:be.container ViewHelper added
Updated by Christian Kuhn almost 3 years ago
- Status changed from Needs Feedback to Closed
Hey.
This issue is "resolved": The f:be.container has been deprecated in v11 and removed in v12 since it basically duplicated f:be.pageRenderer.