12-13-2012 11:54 AM
12-13-2012 06:56 PM
12-14-2012 04:37 AM
12-14-2012 04:58 AM
12-14-2012 11:38 AM
12-14-2012 12:13 PM
12-17-2012 07:38 AM
<@markup id="js">
<#– JavaScript Dependencies –>
<@script src="${url.context}/res/components/header/header.js" group="header"/>
<@script src="${url.context}/res/modules/about-share.js" group="header"/>
<#if config.global.header?? && config.global.header.dependencies?? && config.global.header.dependencies.js??>
<#list config.global.header.dependencies.js as jsFile>
<@script src="${url.context}/res${jsFile}" group="header"/>
</#list>
</#if>
</@>
<header>
…
<dependencies>
<css src="/modules/create-site.css" />
<css src="/modules/header/sites.css" />
<js src="/modules/create-site.js" />
<js src="/modules/header/sites.js" />
</dependencies>
</header>
Alfresco.module.getCreateSiteInstance = function()
{
var instanceId = "alfresco-createSite-instance";
return Alfresco.util.ComponentManager.get(instanceId) || new Alfresco.module.CreateSite(instanceId);
};
12-21-2012 10:38 AM
There are still some things that do not make much sense to me however. modules/create-site.js is imported by using the xml configuration in the header file, but in the dahslets it is hardcoded in their .html.ftl instead. Is there a reason for this or is it just something that has not been updated properly yet?
<script type="text/javascript" src="/share/res/modules/create-site_b5bb531ab15b8fc79081b0272c98584.js"></script>
<script type="text/javascript" src="/share/res/modules/header/sites_bed5edd74497ac9c519bec978c17c6d7.js"></script>
<script type="text/javascript">//<![CDATA[
var global_x002e_header_x0023_default=new Alfresco.component.Header("global_x002e_header_x0023_default").setOptions({"siteId":"","minSearchTermLength":1.0,"tokens":{"site":"","userid":"admin","pageid":""},"siteTitle":""}).setMessages({"message.status.failure": "Couldn't update status.", "message.status.success": "Status successfully updated.", "status.updated": "Last updated: {0}", "status.never-updated": "never", "status.default": "What are you doing?"});
//]]></script>
<script type="text/javascript">//<![CDATA[
Alfresco.util.createTwister.collapsed = "";
//]]></script>
<script type="text/javascript">//<![CDATA[
Alfresco.constants.DASHLET_RESIZE = true && YAHOO.env.ua.mobile === null;
//]]></script>
<script type="text/javascript">//<![CDATA[
//]]></script>
<script type="text/javascript" src="/share/res/components/dashlets/dynamic-welcome_1c9f18c8ff4e39b5b7326e8c2ecf66b9.js"></script>
<script type="text/javascript" src="/share/res/modules/create-site_b5bb531ab15b8fc79081b0272c98584.js"></script>
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.