11-15-2016 05:23 AM
Hi, Community!
How to add JS library to ftl controller?
I've tried to add library to mypopup.ftl:
<script type="text/javascript" src="${url.context}/res/js/yui-min.js"/>
or
<@script src="http://yui.yahooapis.com/3.18.1/build/yui/yui-min.js"></@>
but it is not working.
<script type="text/javascript">
YUI().use("panel", function (Y) { // loading escape only for security on this page
...
});
});
<script/>
But everytime I get error YUI is undefined.
11-15-2016 11:24 AM
FTL pages are including YUI by default. Maybe you can start by reading this: Adding a new Surf page to Alfresco Share | Alfresco Documentation
11-16-2016 08:37 AM
Thanks. Which version of YUI Alfresco 5.1 uses?
11-16-2016 10:41 AM
2.9.0
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.