[Neos] Neos and RequireJS in the Frontend

Aske Ertmann aske at moc.net
Wed May 7 09:49:12 CEST 2014


Hi Lars

Which version of Neos are you using? Because it should be possible with Neos 1.1 due to this change https://review.typo3.org/#/c/26487/

1.1 is currently in beta, but is quite stable and will be out pretty soon.

Greetings
Aske

On May 7, 2014, at 8:35 AM, Lars Peipmann <lars at peipmann.de> wrote:

> 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