cancel
Showing results for 
Search instead for 
Did you mean: 

RSS feed on AVM contents

f_gandini
Champ in-the-making
Champ in-the-making
Hi all,
for our customer we would like to develop a feature that allow us to generate automatically RSS feed on AVM contents stored in a web project.
In your opinion, what is the best way to do this?

Alfresco version used: 2.1E SP5

Thans in advance.

Best Regards,
Fabio
1 REPLY 1

tommorris
Champ in-the-making
Champ in-the-making
Hello there,

One way would be to create a Web Script (see http://wiki.alfresco.com/wiki/Web_Scripts) containing Javascript
This script can use a Lucene search on the AVM contents (e.g. store.luceneSearch(query)).
…triggerd by a URL such as e.g. http://alfrescosrv:8080/alfresco/service/rss/news
(see http://wiki.alfresco.com/wiki/JavaScript_API#AVM_API)

This search query can include date constraints, and can be limited to a certain folder-path.
The response to this script can be transformed by a template (a Freemarker FTL file for instance), into an RSS XML output.

Remember, if you need custom meta-data attributes on your AVM nodes, you can configure the meta-data extractor to add these.
Also, only the staging sandbox (and the ASR deployed target sandbox, with the 'live' suffix) is indexed by Lucene.

Hope that helps,
Tom