Using externally/CDN-hosted libraries

N2CMS uses several open-source libraries to provide various facilities to the admin UI: 

  • Angular JS
  • Twitter Bootstrap
  • JQuery
  • JQuery UI
  • CKEditor 
  • Fancybox
  • Font-Awesome

You can change the location from which libraries are loaded by customizing the <resources> section. 

If you are using a ConfigSource for the <host> section, you need to move the <resources> element to the file specified by the ConfigSource (i.e. n2_host.config)

<configuration>
    <n2>
        <host>
            <resources 
                angularJsRoot="~/Scripts/"
                angularUiJsPath="~/Content/angular-ui.js"
                angularUiCssPath="~/Content/angular-ui.css"
                angularStrapJsPath="~/Scripts/angular-strap.js"
                bootstrapCssPath="~/Content/bootstrap.min.css"
                bootstrapJsPath="~/Scripts/bootstrap.js"
                ckEditorJsPath="~/Scripts/ckeditor/ckeditor.js"
                fancyboxJsPath="~/Scripts/jquery.fancybox.min.css"
                fancyboxCssPath="~/Content/jquery.fancybox.min.css"
                iconsCssPath="~/Content/font-awesome.min.css"
                jQueryJsPath="~/Scripts/jquery-1.9.0.min.js"
                jQueryUiPath="~/Scripts/jquery-ui.min.js"
            />
        </host>
    </n2>
</configuration>