[Neos] Neos and RequireJS in the Frontend

Christian Loock brainshack at gmail.com
Wed May 7 08:43:58 CEST 2014


How about writing a little viewhelper that includes your JS and checks if
it has allready been inlcuded in the current request.

That might work, if it is actually realted to being included mutltiple
times.


2014-05-07 8:35 GMT+02:00 Lars Peipmann <lars at peipmann.de>:

> Hi there,
>
> I tried to use RequireJS within a Neos-Site. The frontend works totally
> fine, but the backend (administration mask, z.B. '/@user-lars') does not
> appear and I do not get any JavaScript warnings/errors in the console.
>
> I guess its a problem to use RequireJS two times (Frontend + Backend).
>
> Frontend:
> <script data-main="http://lunor.larsp.de/_Resources/Static/Packages/
> LarsPeipmann.LunorSite/Scripts/main" src="//cdnjs.cloudflare.com/
> ajax/libs/require.js/2.1.11/require.min.js"></script>
>
> Backend:
> <script src="http://lunor.larsp.de/_Resources/Static/Packages/
> TYPO3.Neos/Library/requirejs/require.js" data-main="http://lunor.larsp.
> de/_Resources/Static/Packages/TYPO3.Neos/JavaScript/ContentModule-built.js
> "></script>
>
> Is there a way to use RequireJS within a Neos-Website?
>
> Best, Lars
> _______________________________________________
> Neos mailing list
> Neos at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos
>


More information about the Neos mailing list