<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dashlets Examples in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/dashlets-examples/m-p/152349#M107007</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found an useful link &lt;/SPAN&gt;&lt;A href="http://livinginjava.blogspot.com/2008/11/how-to-create-custom-dashlet-in.html" rel="nofollow noopener noreferrer"&gt;http://livinginjava.blogspot.com/2008/11/how-to-create-custom-dashlet-in.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;So thank to Santoso from the link we have an example of how to create a simple dashlet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step by step on creating dashlet in Alfresco :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a freemarker template for the dashlet and name it filename.html.ftl (e.g. hello.html.ftl). For freemarker syntax please see &lt;/SPAN&gt;&lt;A href="http://freemarker.org/" rel="nofollow noopener noreferrer"&gt;http://freemarker.org/&lt;/A&gt;&lt;SPAN&gt;. Sample content :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#assign name = person.properties.userName&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello ${name}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Create a jsp file that will include the template file created on step 1. The content of the jsp file would be :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;r:template templatePath="/alfresco/templates/hello.html.ftl"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/r:template&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Save the jsp file in tomcat\webapps\alfresco\jsp\dashboards\dashlets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Open web-client-config.xml, you can find it in tomcat\webapps\alfresco\WEB-INF\classes\alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Register the new dashlet, find "dashlets" (without quotes) in web-client-config.xml, add the following configuration :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;dashlet id="hello" label="Hello Dashlet" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; description="My Hello Dashlet" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jsp="/jsp/dashboards/dashlets/hello.jsp"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/dashlet&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;7. To see the new dashlet in action, just restart alfresco, login, configure the dashboard and pick the new dashlet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2009 13:35:03 GMT</pubDate>
    <dc:creator>typsy</dc:creator>
    <dc:date>2009-01-26T13:35:03Z</dc:date>
    <item>
      <title>Dashlets Examples</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dashlets-examples/m-p/152348#M107006</link>
      <description>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 welcomeThnanks,Gaurav</description>
      <pubDate>Sun, 06 Jul 2008 19:49:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dashlets-examples/m-p/152348#M107006</guid>
      <dc:creator>gaurav</dc:creator>
      <dc:date>2008-07-06T19:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dashlets Examples</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dashlets-examples/m-p/152349#M107007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found an useful link &lt;/SPAN&gt;&lt;A href="http://livinginjava.blogspot.com/2008/11/how-to-create-custom-dashlet-in.html" rel="nofollow noopener noreferrer"&gt;http://livinginjava.blogspot.com/2008/11/how-to-create-custom-dashlet-in.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;So thank to Santoso from the link we have an example of how to create a simple dashlet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step by step on creating dashlet in Alfresco :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a freemarker template for the dashlet and name it filename.html.ftl (e.g. hello.html.ftl). For freemarker syntax please see &lt;/SPAN&gt;&lt;A href="http://freemarker.org/" rel="nofollow noopener noreferrer"&gt;http://freemarker.org/&lt;/A&gt;&lt;SPAN&gt;. Sample content :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#assign name = person.properties.userName&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello ${name}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Create a jsp file that will include the template file created on step 1. The content of the jsp file would be :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;r:template templatePath="/alfresco/templates/hello.html.ftl"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/r:template&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Save the jsp file in tomcat\webapps\alfresco\jsp\dashboards\dashlets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Open web-client-config.xml, you can find it in tomcat\webapps\alfresco\WEB-INF\classes\alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Register the new dashlet, find "dashlets" (without quotes) in web-client-config.xml, add the following configuration :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;dashlet id="hello" label="Hello Dashlet" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; description="My Hello Dashlet" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jsp="/jsp/dashboards/dashlets/hello.jsp"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/dashlet&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;7. To see the new dashlet in action, just restart alfresco, login, configure the dashboard and pick the new dashlet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 13:35:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dashlets-examples/m-p/152349#M107007</guid>
      <dc:creator>typsy</dc:creator>
      <dc:date>2009-01-26T13:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dashlets Examples</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dashlets-examples/m-p/152350#M107008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, above at 3. I mean instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;r:template templatePath="/alfresco/templates/hello.html.ftl"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The correct form is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;r:template template="/alfresco/templates/hello.html.ftl"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 13:51:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dashlets-examples/m-p/152350#M107008</guid>
      <dc:creator>typsy</dc:creator>
      <dc:date>2009-01-26T13:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dashlets Examples</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dashlets-examples/m-p/152351#M107009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I didnt find this info very helpful at all.&amp;nbsp; The dashlet listed above doesn't appear as an available dashlet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 13:54:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dashlets-examples/m-p/152351#M107009</guid>
      <dc:creator>rshoemake</dc:creator>
      <dc:date>2011-03-24T13:54:16Z</dc:date>
    </item>
  </channel>
</rss>

