cancel
Showing results for 
Search instead for 
Did you mean: 

Example of custom dashlets for the My Alfresco page?

theorbix
Confirmed Champ
Confirmed Champ
Hello,

As far as I've understood, it should be possible to customize the My Alfresco page (that as it is today is a bit useless… 🙂 ) with one or more custom "dashlets".

Has anyone created some sample dashlets and is willing to share the sample code?

Two dashlets that could be very useful - IMHO - could be:

- a dashlet that lists the documents contained in a given Space (and if it was possile to pass the space name/id as a parameter, this could become a generic "show space contents" dashlet);

- a dashlet that lists all new documents uploaded (or updated) in the repository in the last day/week/month; it would be a very useful "What's new" kind of feature…

Has anyone already done something similar?
2 REPLIES 2

kevinr
Star Contributor
Star Contributor
Since you can write a Template and use that in a custom dashlet, you can do pretty much anything ethat API can do. There is a template already installed in the "/Company Home/Data Dictionary/Presentation Templates" folder called 'recent_docs.ftl' that shows docs added to your home space in the last 7 days - that is a good starting point.

In 2.1 we provide some nifty looking Web Script based dashlets such as My Documents which shows the documents in your space. The "mydocs" webscript accepts a path to a space (default as your Home Space) or a Lucene query to use to retrieve the list of documents to show. Using a simply customised version of that webscript dashlet can do what you want and more.

Hope this helps,

Kevin

robbiefpi
Champ in-the-making
Champ in-the-making
I would like to customize the page after login with company logos, so admin and users can view this logo.

I found that there is a company_logos.ftl in which I can read

<#– Table of the images found in a folder under Company Home called "Company Logos" –>
<#– Shows each image found as inline content –>
<table>
   <#list companyhome.children as child>
      <#if child.isContainer && child.name = "Company Logos">
         <#list child.children as image>
            <#switch image.mimetype>
              <#case "image/jpeg">
              <#case "image/gif">
              <#case "image/png">
                  <tr>
                     <td><img src="/alfresco${image.url}"></td>
                  </tr>
                  <#break>
               <#default>
            </#switch>
         </#list>
      </#if>
   </#list>
</table>


Where can I find this ftl under the UI of alfresco? and this directory Company logos have to be create ?

thanks
Roberto