I was wondering if I could find some example of a(web script) custom web client using a dashlet.
To my understanding dashlet functionality is my best bet to achieve ECM style functionality in WCM. I don't really know if my understanding is correct. Any suggestions are welcome
Just in case that this link won't be available in time I'll write here the main steps of creating a Hello World dashlet for Alfresco. (I am using Alfresco 3.0 and it worked for me):
Step by step on creating dashlet in Alfresco :
1. Create a freemarker template for the dashlet and name it filename.html.ftl (e.g. hello.html.ftl). For freemarker syntax please see http://freemarker.org/. Sample content :
<#assign name = person.properties.userName> Hello ${name}
2. Save the file in tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\, you could also a directory inside and put your file in your directory.
3. Create a jsp file that will include the template file created on step 1. The content of the jsp file would be : <%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> <r:template templatePath="/alfresco/templates/hello.html.ftl"> </r:template>
4. Save the jsp file in tomcat\webapps\alfresco\jsp\dashboards\dashlets.
5. Open web-client-config.xml, you can find it in tomcat\webapps\alfresco\WEB-INF\classes\alfresco.
6. Register the new dashlet, find "dashlets" (without quotes) in web-client-config.xml, add the following configuration :
Sorry, above at 3. I mean instead of <r:template templatePath="/alfresco/templates/hello.html.ftl"> The correct form is: <r:template template="/alfresco/templates/hello.html.ftl">