AnsweredAssumed Answered

Attn: Share template and component authors

Question asked by mikeh Employee on Feb 6, 2009
Latest reply on Feb 23, 2010 by mikeh
[size=120]Please note the important change in r13114 to support client-side JavaScript being minimised via the YUI Compressor.[/size]

[size=120]Components[/size]
Old:
<!– Document List Assets –>
<link rel="stylesheet" type="text/css" href="${page.url.context}/components/documentlibrary/documentlist.css" />
<script type="text/javascript" src="${page.url.context}/components/documentlibrary/documentlist.js"></script>
New:
<#include "../component.head.inc">
<!– Document List –>
<@link rel="stylesheet" type="text/css" href="${page.url.context}/components/documentlibrary/documentlist.css" />
<@script type="text/javascript" src="${page.url.context}/components/documentlibrary/documentlist.js"></@script>

[size=120]Templates[/size]
Old:
<#import "import/alfresco-template.ftl" as template />
<@template.header>
   <link … />
   <script … ></script>

<@template.body>

<@template.footer>
New:
<#include "include/alfresco-template.ftl" />
<@templateHeader>
   <@link … />
   <@script … ></@script>

<@templateBody>

<@templateFooter>

Finally, the debug flag is now in config rather than the alfresco_template.ftl; you'll find it in web-framework-config-application.xml

Thanks,
Mike

Outcomes