How to add external JS/CSS from CDN/external domain

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2017 09:45 AM
Hi,
I would like to add external assets (JS/CSS) that are served from CDN on external domain. This will be used to create custom stencils angular controller logic and some branded styling.
I have found that you can add resources thro app-cfg.js
/* * Copyright 2005-2017 Alfresco Software, Ltd. All rights reserved. * License rights for this program may be obtained from Alfresco Software, Ltd. * pursuant to a written agreement and any use of this program without such an * agreement is prohibited. */'use strict';var ACTIVITI = ACTIVITI || {};ACTIVITI.CONFIG = { 'onPremise' : true, 'contextRoot' : '/activiti-app', 'webContextRoot' : '/activiti-app', 'locales': ['en','de','es','fr','it','nl','ja','nb','ru','zh-CN','pt-BR'], 'signupUrl' : '#/signup'};ACTIVITI.CONFIG.resources = { '*': [ { 'tag': 'link', 'rel': 'stylesheet', 'href': 'http://example.com/custom-style.css?v=1.0' } ], 'workflow': [ { 'tag': 'script', 'type': 'text/javascript', 'src': 'http://example.com/custom-app.js?v=1.0' } ]};
But it does not seem to work.
Any ideas why?
Labels:
- Labels:
-
Alfresco Process Services
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2017 01:23 AM
Hmmm, not sure. Have you checked this blog on form stencils and I think I am using some external libs in those examples...Hope this helps

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2017 11:25 AM
Thanks for the link I will take a look.
