I’ve written a follow-on article to “Alfresco Developer: Working with Custom Types”. This one is on implementing custom behavior. In the new article (with accompanying source code), I build on the SomeCo Whitepapers example by adding support to the content model for user-contributed ratings of whitepapers. The custom behavior is used to calculate the average rating for each piece of rated content.
My plan is to follow on shortly with an article that shows how to use Alfresco’s new REST-based Web Script framework to enable the front-end to rate (and get the rating of) content in the Alfresco repository.
So take a look and let me know what you think.
More about the Alfresco Developer Series.
Hi Jeff,
Thanks a lot for such great article.
I like to have useful samples of Alfresco usage and customization.
I would ask you how the performance of the rating sample would be improve, if the sc:rateable aspect stores the current sum and count of existing sc:ratings children ?
The computeAverage() method won’t have to rescan all the children and will update the rating more efficiently.
Hope to see your next article soon 🙂
Cordialement,
David
@David…Agreed. Storing the sum and count as well as the average as part of the aspect would be an improvement. Thanks for the feedback. Glad the article was valuable.
Jeff, superb article, thank you for taking the time to put things in a way we could learn more about Alfresco and its features.
Regarding the webscripts tutorial, my question is when ?. Please deliver it as soon as you can.
Thank you !
@Luis — I’m glad you have found it valuable. I’m hoping to post it by the end of this week. After that, I’m thinking of doing one on advanced workflow with JBPM but I’m open to suggestions.
Got it. Advanced workflow was in my wishlist. Thank you.
Hi Jeff, When is your article on advanced workflow with JBPM coming!! I’m waiting for that!!!
Thanks,
Ven
Where could I find-out online tutorial related “Rating/Scoring” the documents or Most viewed or downloaded documents ???
Any link / Any Help ?
Hi Jeff,
Is it possible to achieve internationalization(i18n) to my web application through alfresco.If so kindly explain me in detail
Hello Jeff and thanks for that wonderful tutorial!
I’m trying to implement the javascript one. Since you stated “In this example the scripts are going to reside as part of the web application rather than being uploaded
to the repository. Nothing requires that this be the case” I tried to remake it with the scripts in the repository.
I guess I have to modify the “location” property but I couldn’t find how. Do I have to write my own java class extending org.alfresco.service.cmr.repository.ScriptLocation ?