AnsweredAssumed Answered

How do you load external javascript using Dojo Loader

Question asked by mohitshah on Jan 22, 2015

I am aware that the Dojo packages are loaded from the file share/, but I need to load other javascript file that reside outside the share webapp like as shown below:

            <script src="/xyz/static/app/lib/jquery/jquery-1.8.2.min.js"></script>
            <script src="/xyz/static/app/lib/bootstrap/js/bootstrap.min.js"></script>
            <script src="/xyz/static/app/lib/pubsubjs/jquery.pubsub.min.js"></script>
            <script src="/xyz/static/app/lib/lodash/lodash_1.0.1.compat.min.js"></script>

Someone the pubsubjs and other js files do not get loaded if Dojo is used.

As soon as I remove the following markup from the alfresco-template.ftl, the js files get loaded but the header goes away.


    <@markup id="dojoBootstrap">
        <@region scope="global" id="bootstrap" chromeless="true"/>

How do I make both the worlds meets.