Rss in mendix

3
Is there any way to use rss in combination with a datagrid or something else, without java actions? Edit: I want to generate RSS so I can Receive updates of new articles/data. I want to use it for receiving updates of data in a datagrid for example. If this feature request is important enough, we will use the first option of Achiel.
asked
4 answers
4

Do note that Achiel's options assumed you wanted to consume RSS, whereas you want to generate RSS. For a RSS feed to be read externally, you need to have a link that returns an XML output inside your application. You could adapt the deeplinking module so that instead of presenting you with a form, it returns a XML file/page, which you fill in Java.

answered
3

You mean publishing data as RSS feed, I guess.

The RSS standards are straightforward (wikipedia), so build the internal entities (channel, title, item) with associations, write a customwidget that walks thru the entities and output them as XML. Put that in a module and copy your own data to the rss objects.

The other way around is to create the XML files with XML export and let your webserver point the directory with created XML files as feeds.

answered
2

No, so feel free to build a nice RSS module :). If you just want to embed te RSS, you could maybe use a client-side RSS reader, (for example http://p3k.org/rss/, but i think there might be better libaries around) and load it using a HTML Snippet widget or IFrame.

answered
2

Top of my head you can do one of three different things:

  • Build a custom widget that consumes RSS and displays it in the browser
  • Build some kind of java action that imports the feed and creates domain entities that you can then display in a datagrid
  • Use some kind of third party javascript (such as the tumblr embed script) to populate some part of your DOM with the feed. (this is not recommended btw)

From the looks of it you're best off going with the first option.

answered