Hi Ricardo,

On Fri, Mar 29, 2013 at 6:48 PM,
<[email protected]> wrote:
> Sorry for coming back with a new question on this. I think I'm getting closer 
> to understand how RSS feeds work in XWiki, but I do need the help of the 
> community.
>
> I'm now usinga XE 4.3 installation. I'm able to customize <channel> elements 
> easily by editing, for instance, Main.WebRss, but, please, how to customize 
> <item> elements? For instance, how to customize <description> element?

You could try to use [1] $xwiki.feed.getSyndEntryDocumentSource($map)
or [2] $xwiki.feed.getSyndEntrySource('Space.YouClass', $map) to
specify how the document/class is mapped to a feed item. Then you have
to pass the returned object to one of the available [3]
$xwiki.feed.getFeed(...) methods.

[1] 
http://maven.xwiki.org/site/docs/xwiki-javadoc-4.5.x/com/xpn/xwiki/plugin/feed/FeedPluginApi.html#getSyndEntryDocumentSource(java.util.Map)
[2] 
http://maven.xwiki.org/site/docs/xwiki-javadoc-4.5.x/com/xpn/xwiki/plugin/feed/FeedPluginApi.html#getSyndEntrySource(java.lang.String,%20java.util.Map)
[3] 
http://maven.xwiki.org/site/docs/xwiki-javadoc-4.5.x/com/xpn/xwiki/plugin/feed/FeedPluginApi.html

There was an old JIRA issue which described in details this API but I
can't find it now..

Hope this helps,
Marius

>
> Thank you so much for your help!
>
> Ricardo
>
> --
> Ricardo Rodríguez
> Research Management and Promotion Technician
> Technical Secretariat
> Health Research Institute of Santiago de Compostela (IDIS)
> http://www.idisantiago.es
>
> Nota: A información contida nesta mensaxe e os seus posibles documentos 
> adxuntos é privada e confidencial e está dirixida únicamente ó seu 
> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, 
> por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.
>
> Nota: La información contenida en este mensaje y sus posibles documentos 
> adjuntos es privada y confidencial y está dirigida únicamente a su 
> destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
> por favor elimínelo. La distribución o copia de este mensaje no está 
> autorizada.
>
> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to