cancel
Showing results for 
Search instead for 
Did you mean: 

Adjustments to Community 3.2

jeffreyvddb
Champ in-the-making
Champ in-the-making
Hi,

Since a few weeks the company I'm working for is using Alfresco Share 3.2 Community as a tool. During these weeks, we've had several questions regarding small adjustments to the out-of-the-box dashlets and functionalities. My question is if it's possible to do the following (and maybe some pointers on how to do this):

1. Giving the user the possibility to create a iCal-feed of his/her 'My Calendar'-dashlet, instead of creating this feed for every site the user is a member of;
2. Creating a dashlet which allows users to navigate through the folder structure, without actually navigating through Share;
3. Creating a new layout for Share, which has two equal columns;
4. Sending an e-mail to every member of the site where you call the action.

If someone has already done this or has some pointers for us, I'd appreciate it very much!
4 REPLIES 4

jeffreyvddb
Champ in-the-making
Champ in-the-making
Since there wasn't an answer yet, I'm wondering if I posted the post in the correct section of the forum.
If it's not the correct section, can someone move my message to the right one? Thanks!

zaizi
Champ in-the-making
Champ in-the-making
1. Yes, this should be quite straight forward to do. See user-calendar.get.html.ftl, user-calendar.get.js, user-calendar.get.desc.xml in Share. You can just create user-calendar.get.rss.ftl to create an iCal feed.
2. This should be possible.
3.Yeah. Take a look at the dashboard-*-column.xml files in Share.
4. More complex but definitely doable.

See http://edlovesjava.blogspot.com/search/label/extending%20share for how to extend Share. See http://wiki.alfresco.com/wiki/Web_Scripts on how Share talks to Alfresco repository.

Let us know if you have any specific questions.

jeffreyvddb
Champ in-the-making
Champ in-the-making
1. Yes, this should be quite straight forward to do. See user-calendar.get.html.ftl, user-calendar.get.js, user-calendar.get.desc.xml in Share. You can just create user-calendar.get.rss.ftl to create an iCal feed.

Thanks for your quick reply. I'm currently busy with the first thing: creating an iCal feed of the 'My Calendar'-dashlet. You're saying that it's possible to make a calendar.get.rss.ftl, but is this not only for an RSS feed? Two specific questions:

1. I tried the code the following to add a feed icon in the dashlet header. Now it's showing the RSS sign, but I want it to be iCal.
2. Do you have an example (or example file which is out-of-the-box) on what kind of code needs to be stored in the calendar.get.rss.ftl?

<div class="feed"><a id="${args.htmlid}-feedLink" href="#" target="_blank"> </a></div>

and also..

<div class="ical-feed"><a id="template_x002e_toolbar_x002e_calendar-publishEvents-button" href="/share/proxy/alfresco-feed/calendar/eventList" rel="_blank">iCal Feed</a></div>

ebogaard
Champ on-the-rise
Champ on-the-rise
I'm looking at the same thing. I'm no no coder, so I'm a bit stuck. It looks like following piece of code from toolbar.het.html.ftl creates the iCal stream:


         <div class="ical-feed">
            <a id="${args.htmlid}-publishEvents-button" href="${page.url.context}/proxy/alfresco-feed/calendar/eventList?site=${page.url.templateArgs["site"]}&amp;format=calendar" rel="_blank">${msg("button.ical")}</a>
         </div>

When I put this in user-calendar.get.html.ftl, it gives an html-500 error. Maybe because it calls for an site, which isn't there (because I'm on mu user Dashboard), or because it needs code from calendar/helper.js, which seems to have some code that generates an iCal-stream.

Can anyone point me, ander others, in the right direction?