Templates & RSS feed datasource
by Daniel Westergren
on
Sep 18, 2009 at 11:00:47 pm
I'm trying to fill a template with news articles from an RSS feed. In the example in the manual, the item ID's correspond to the layer name in Photoshop. But what with a "normal" RSS feed, where the item fields are , etc.? How are the Photoshop layers supposed to be named?
I'm thinking of using this both as an overlay ticker (with titles and possibly publish date) and as normal playlist events with a template, with title, publish time and description (news details).
Re: Templates & RSS feed datasource by Dirk Provily on Sep 20, 2009 at 9:55:44 am
Hello Daniel,
I understand your question, you would like to use standard RSS feeds for filling data into a template based playlist event, using DS Player or DS Player+
Let me explain:
RSS feeds A standard RSS feed can only be used for a ticker, it automatically reads all available titles (headlines) in the RSS feed. The URL of this RSS ticker is inserted into the text box called RSS# inside the template or overlay design. (page 21 of the manual)
XML datasource A XML datasource can be used for automatically filling data into a template of your choice, for example filling one or more text fields. (page 28)
What you need in this case, is a conversion from RSS feeds to a XML datasource.
Most web developers with some skills in scripting can create such a conversion.
If you need any help with creating such a conversion , just give me a message, and i send you a basic .php script, converting a standard RSS feed into a datasource.
Re: Templates & RSS feed datasource by Daniel Westergren on Sep 20, 2009 at 11:10:56 am
Ah, I should've understood that! :)
I think I may be able to figure the conversion out. But since I suppose many others may wish to do the same thing, maybe you could post a sample script here?
I have created a Photoshop template, with group called "schedule" and within that a group called "today" with the text fields title, description and datetime.
Re: Template doesn't parse datasource by Daniel Westergren on Sep 20, 2009 at 6:55:20 pm
Thanks!
Yeah, I think it was the encoding that made it not parse. The file name of the Photoshop file became like that automatically when I uploaded it. :)
Now I'll try to figure out how to parse multiple events to display as one playlist event in DS Player, like the upcoming 5 programs. I suppose the id's in the XML need to be different for each item, and I create placeholders/layers in the template for each of them? And say I make room for five events, if there are only four in the XML, the last layer won't be filled.
Re: Template doesn't parse datasource by Dirk Provily on Sep 21, 2009 at 9:44:20 am
Yes, that's correct Daniel.
But note that you have to parse the empty value's also in your XML datasource file. (Otherwise DS Player+ will remember the last fifth value)
Re: Template doesn't parse datasource by Daniel Westergren on Sep 21, 2009 at 6:06:22 pm
Ok!
The main issue I'm trying to find a solution for now is when the upcoming number of programs/events to display is not known. For example if displaying the events for today as one playlist event, and the events for tomorrow as another playlist event. That is, if each day requires more fields than can fit on one page.
Displaying the upcoming 10 programs/events for example makes it difficult to group those by day, and we'd have to display the full date for each event, which doesn't look as nice.
Creating the entire playlist xml file from a CMS would of course solve this. But it would require quite a bit of work to built a module to administer all playlist events from a CMS. Ideally we'd like to use DSPlayer+ for most playlist events, but a CMS for dynamic content from a database or RSS feed. But from what I understand it may not be easy to combine these two...
Could there be a way to group playlist events? That is, one group for playlist events that are updated through DSPlayer+ and another group for dynamic content, where the number of events in that playlist group is not known beforehand?
Re: Template doesn't parse datasource by Dirk Provily on Sep 22, 2009 at 2:02:08 pm
Hello,
My answer for now is very short; this is not possible in version 1.2. But it is a very interesting question!
We will investigate the possibility's for this kind of functionality in the next update of DS Player(+)..
> Creating the entire playlist xml file from a CMS would of coursesolve this.
Re: Template doesn't parse datasource by Richard Williams on Oct 6, 2009 at 3:36:36 pm
I like your approach. I have been parsing/filling RSS feeds using biterscripting ( http://www.biterscripting.com ). I wonder how you would compare that approach to your approach. Any other scripting languages ?
Re: Template doesn't parse datasource by Daniel Westergren on Oct 6, 2009 at 6:03:16 pm
I use the CMS called CMS Made Simple and a module it has to parse RSS feeds to HTML (or any code really). It uses MagpieRSS for parsing the RSS feeds.
I haven't really tested enough yet to compare to other methods, and I'm not much of a programmer anyway. :) I guess it depends on if you use a CMS or just fetch the parsed XML directly to DS Player.