02-05-2009 07:57 PM
<!– 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>
<#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>
02-22-2010 04:22 AM
[size=120]Please note the important change in r13114 to support client-side JavaScript being minimised via the YUI Compressor.[/size]I would also like to mention that the old style still works, so you can develop your script without having to minimize it (or pretending to have done so).
[size=120]Components[/size]
Old:New:<!– 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><#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>
02-23-2010 04:30 PM
I would also like to mention that the old style still works, so you can develop your script without having to minimize it (or pretending to have done so).Yes, good point. Although with the caveat that we now group stylesheets into @import directives in order to workaround an MSIE limitation. You might hit the issue if you don't use the new format.
Regards,
Michael
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.