[Neos] Neos and RequireJS in the Frontend

Lars Peipmann lars at peipmann.de
Wed May 7 08:35:53 CEST 2014


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


More information about the Neos mailing list