Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
FORUMS: listlist (w/ descriptions)archivetagssearchhall of famerecent posts

Templates & RSS feed datasource

Cow Forums : 1080dots

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>
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 , <description> etc.? How are the Photoshop layers supposed to be named? <br> <br>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). <br> <br> <br clear="all" /><br /> <script LANGUAGE="JavaScript" SRC="http://forums.creativecow.net/docs/vote.js" type="text/javascript"></script> <table border=0 cellpadding=0 cellspacing=0 width="100%"><tr><td valign="middle"><nobr><a href='http://forums.creativecow.net/readpost/256/60#reply_box'>Respond to this post</a>   •   <a href='http://forums.creativecow.net/1080dots#60'>Return to posts index</a></nobr></td> </tr></table> </td><td></td></tr><tr><td class="ge_bl"></td><td></td><td class="ge_br"></td></tr></table> <hr size="1" /> <a name='61'></a><table border=0 cellpadding=0 cellspacing=0 class='gd'><tr><td class='gd_tl'></td><td></td><td class='gd_tr'></td></tr><tr><td></td><td class='gd_m'><div style='float:right;' align='right'></div><table border=0 cellpadding=0 cellspacing=0><tr><td valign='middle'><b>Re: Templates & RSS feed datasource</b><br>by <a href="http://forums.creativecow.net/profile/119837">Dirk Provily</a> on Sep 20, 2009 at 9:55:44 am</td></tr></table><br clear='all'>Hello Daniel, <br> <br>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+ <br> <br>Let me explain: <br> <br><b>RSS feeds</b> <br>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) <br> <br><b>XML datasource</b> <br>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) <br> <br>What you need in this case, is a conversion from RSS feeds to a XML datasource. <br>Most web developers with some skills in scripting can create such a conversion. <br> <br>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. <br> <br>greetings, <br> <br>Dirk Provily <br>www.1080dots.com <br clear='all' /><br /><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td valign='middle'><a href='http://forums.creativecow.net/readpost/256/61#reply_box'>Respond to this post</a>   •   <a href='http://forums.creativecow.net/1080dots#61'>Return to posts index</a></tr></table></td><td></td></tr><tr><td class='gd_bl'></td><td></td><td class='gd_br'></td></tr></table><hr size=1> <a name='62'></a><table border=0 cellpadding=0 cellspacing=0 class='ge'><tr><td class='ge_tl'></td><td></td><td class='ge_tr'></td></tr><tr><td></td><td class='gd_m'><div style='float:right;' align='right'></div><table border=0 cellpadding=0 cellspacing=0><tr><td valign='middle'><b>Re: Templates & RSS feed datasource</b><br>by <a href="http://forums.creativecow.net/profile/75438">Daniel Westergren</a> on Sep 20, 2009 at 11:10:56 am</td></tr></table><br clear='all'>Ah, I should've understood that! :) <br> <br>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? <br> <br>Thanks! <br> <br>/Daniel <br> <br> <br clear='all' /><br /><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td valign='middle'><a href='http://forums.creativecow.net/readpost/256/62#reply_box'>Respond to this post</a>   •   <a href='http://forums.creativecow.net/1080dots#62'>Return to posts index</a></tr></table></td><td></td></tr><tr><td class='ge_bl'></td><td></td><td class='ge_br'></td></tr></table><hr size=1> <div align='center' style='padding: 10px 0px 10px 0px;'><SCRIPT language="JavaScript" type="text/javascript"> <!-- document.write('<SCR'+'IPT src="http://gyr2.creativecow.net/advertpro/servlet/view/banner/javascript/zone?zid=14&custom1=&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>'); //--> </SCRIPT> <NOSCRIPT><A href="http://gyr2.creativecow.net/advertpro/servlet/click/zone?zid=14&pid=0&custom1=&lookup=true&position=1" target="_top" rel="nofollow"><IMG src="http://gyr2.creativecow.net/advertpro/servlet/view/banner/image/zone?zid=14&pid=0&custom1=&position=1" height="60" width="468" hspace="0" vspace="0" border="0"></A></NOSCRIPT></div><hr size=1><a name='63'></a><table border=0 cellpadding=0 cellspacing=0 class='gd'><tr><td class='gd_tl'></td><td></td><td class='gd_tr'></td></tr><tr><td></td><td class='gd_m'><div style='float:right;' align='right'></div><table border=0 cellpadding=0 cellspacing=0><tr><td valign='middle'><b>Template doesn't parse datasource</b><br>by <a href="http://forums.creativecow.net/profile/75438">Daniel Westergren</a> on Sep 20, 2009 at 12:14:29 pm</td></tr></table><br clear='all'>Hi again, <br> <br>I've successfully converted an RSS feed to an XML formatted this way: <br> <br><code><schedule_datasource> <br> <item id="today"> <br> <item id="title">20 sep 17:30 RixMix: Mitt i schack, avsnitt 262</item> <br> <item id="datetime"/> <br> <item id="description"> (Mitt i schack, Öppna Kanalen Stockholm)</item> <br> </item></code> <br> <br>The XML is at <a rel="nofollow" href='http://www.okv.se/feeds/dsplayer_tabla'>http://www.okv.se/feeds/dsplayer_tabla</a> <br> <br>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. <br> <br>But the template doesn't successfully parse the XML, even though I put the link <a rel="nofollow" href='http://www.okv.se/feeds/dsplayer_tabla'>http://www.okv.se/feeds/dsplayer_tabla</a> as a datasource. <br> <br>Rather, the default text that I wrote in Photoshop is what is being displayed... <br> <br>What have I done wrong? <br> <br>Photoshop template is here: <a href='http://f1.creativecow.net/274/photoshop-template'>274_template6.psd.zip</a> <br> <br>Thanks, <br>Daniel <br> <br> <br clear='all' /><br /><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td valign='middle'><a href='http://forums.creativecow.net/readpost/256/63#reply_box'>Respond to this post</a>   •   <a href='http://forums.creativecow.net/1080dots#63'>Return to posts index</a></tr></table></td><td></td></tr><tr><td class='gd_bl'></td><td></td><td class='gd_br'></td></tr></table><hr size=1> <a name='64'></a><table border=0 cellpadding=0 cellspacing=0 class='ge'><tr><td class='ge_tl'></td><td></td><td class='ge_tr'></td></tr><tr><td></td><td class='gd_m'><div style='float:right;' align='right'></div><table border=0 cellpadding=0 cellspacing=0><tr><td valign='middle'><b>Re: Template doesn't parse datasource</b><br>by <a href="http://forums.creativecow.net/profile/119837">Dirk Provily</a> on Sep 20, 2009 at 5:56:52 pm</td></tr></table><br clear='all'>Hi Daniel, <br> <br>Before you drop your photoshop template design, you have to rename this file into "template6.psd" (remove the 274_). <br> <br>Take a close look at my example for this specific template: <br><a rel="nofollow" href='http://www.1080dots.com/datasource/datasource_okv.xml'>http://www.1080dots.com/datasource/datasource_okv.xml</a> <br> <br><code><?xml version="1.0" encoding="ISO-8859-1" ?> <br><schedule> <br> <item id="today"> <br> <item id="description">Europas grönaste..</item> <br> <item id="datetime">20 sep 19:00</item> <br> <item id="title">Invigning av Portvakten..</item> <br> </item> <br></schedule></code> <br> <br>I also changed the encoding type in the XML datasource into ISO-8859-1. Your XML datasource displayed a parse error. <br> <br>Remember that the datasource can only fill the corresponding layer-set inside one or more templates. <br> <br>greetings, <br> <br>Dirk Provily <br>www.1080dots.com <br clear='all' /><br /><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td valign='middle'><a href='http://forums.creativecow.net/readpost/256/64#reply_box'>Respond to this post</a>   •   <a href='http://forums.creativecow.net/1080dots#64'>Return to posts index</a></tr></table></td><td></td></tr><tr><td class='ge_bl'></td><td></td><td class='ge_br'></td></tr></table><hr size=1> <a name='65'></a><table border=0 cellpadding=0 cellspacing=0 class='gd'><tr><td class='gd_tl'></td><td></td><td class='gd_tr'></td></tr><tr><td></td><td class='gd_m'><div style='float:right;' align='right'></div><table border=0 cellpadding=0 cellspacing=0><tr><td valign='middle'><b>Re: Template doesn't parse datasource</b><br>by <a href="http://forums.creativecow.net/profile/75438">Daniel Westergren</a> on Sep 20, 2009 at 6:55:20 pm</td></tr></table><br clear='all'>Thanks! <br> <br>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. :) <br> <br>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. <br> <br>Getting there. :) <br> <br>/Daniel <br> <br> <br clear='all' /><br /><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td valign='middle'><a href='http://forums.creativecow.net/readpost/256/65#reply_box'>Respond to this post</a>   •   <a href='http://forums.creativecow.net/1080dots#65'>Return to posts index</a></tr></table></td><td></td></tr><tr><td class='gd_bl'></td><td></td><td class='gd_br'></td></tr></table><hr size=1> <div align='center' style='padding: 10px 0px 10px 0px;'><SCRIPT language="JavaScript" type="text/javascript"> <!-- document.write('<SCR'+'IPT src="http://gyr2.creativecow.net/advertpro/servlet/view/banner/javascript/zone?zid=15&custom1=&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>'); //--> </SCRIPT> <NOSCRIPT><A href="http://gyr2.creativecow.net/advertpro/servlet/click/zone?zid=15&pid=0&custom1=&lookup=true&position=1" target="_top" rel="nofollow"><IMG src="http://gyr2.creativecow.net/advertpro/servlet/view/banner/image/zone?zid=15&pid=0&custom1=&position=1" height="74" width="600" hspace="0" vspace="0" border="0"></A></NOSCRIPT></div><hr size=1><a name='66'></a><table border=0 cellpadding=0 cellspacing=0 class='ge'><tr><td class='ge_tl'></td><td></td><td class='ge_tr'></td></tr><tr><td></td><td class='gd_m'><div style='float:right;' align='right'></div><table border=0 cellpadding=0 cellspacing=0><tr><td valign='middle'><b>Re: Template doesn't parse datasource</b><br>by <a href="http://forums.creativecow.net/profile/119837">Dirk Provily</a> on Sep 21, 2009 at 9:44:20 am</td></tr></table><br clear='all'>Yes, that's correct Daniel. <br>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) <br> <br>Just give it a try ;) <br> <br>Dirk Provily <br>www.1080dots.com <br clear='all' /><br /><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td valign='middle'><a href='http://forums.creativecow.net/readpost/256/66#reply_box'>Respond to this post</a>   •   <a href='http://forums.creativecow.net/1080dots#66'>Return to posts index</a></tr></table></td><td></td></tr><tr><td class='ge_bl'></td><td></td><td class='ge_br'></td></tr></table><hr size=1> <a name='67'></a><table border=0 cellpadding=0 cellspacing=0 class='gd'><tr><td class='gd_tl'></td><td></td><td class='gd_tr'></td></tr><tr><td></td><td class='gd_m'><div style='float:right;' align='right'></div><table border=0 cellpadding=0 cellspacing=0><tr><td valign='middle'><b>Re: Template doesn't parse datasource</b><br>by <a href="http://forums.creativecow.net/profile/75438">Daniel Westergren</a> on Sep 21, 2009 at 6:06:22 pm</td></tr></table><br clear='all'>Ok! <br> <br>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. <br> <br>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. <br> <br>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... <br> <br>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? <br> <br> <br clear='all' /><br /><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td valign='middle'><a href='http://forums.creativecow.net/readpost/256/67#reply_box'>Respond to this post</a>   •   <a href='http://forums.creativecow.net/1080dots#67'>Return to posts index</a></tr></table></td><td></td></tr><tr><td class='gd_bl'></td><td></td><td class='gd_br'></td></tr></table><hr size=1> <a name='68'></a><table border=0 cellpadding=0 cellspacing=0 class='ge'><tr><td class='ge_tl'></td><td></td><td class='ge_tr'></td></tr><tr><td></td><td class='gd_m'><div style='float:right;' align='right'></div><table border=0 cellpadding=0 cellspacing=0><tr><td valign='middle'><b>Re: Template doesn't parse datasource</b><br>by <a href="http://forums.creativecow.net/profile/119837">Dirk Provily</a> on Sep 22, 2009 at 2:02:08 pm</td></tr></table><br clear='all'>Hello, <br> <br>My answer for now is very short; this is not possible in version 1.2. But it is a very interesting question! <br>We will investigate the possibility's for this kind of functionality in the next update of DS Player(+).. <br> <br><i> > Creating the entire playlist xml file from a CMS would of coursesolve this. </i> <br> <br>That's right. <br> <br> <br>Dirk Provily <br>www.1080dots.com <br clear='all' /><br /><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td valign='middle'><a href='http://forums.creativecow.net/readpost/256/68#reply_box'>Respond to this post</a>   •   <a href='http://forums.creativecow.net/1080dots#68'>Return to posts index</a></tr></table></td><td></td></tr><tr><td class='ge_bl'></td><td></td><td class='ge_br'></td></tr></table><hr size=1> <div align='center' style='padding: 10px 0px 10px 0px;'><SCRIPT language="JavaScript" type="text/javascript"> <!-- document.write('<SCR'+'IPT src="http://gyr2.creativecow.net/advertpro/servlet/view/banner/javascript/zone?zid=14&custom1=&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>'); //--> </SCRIPT> <NOSCRIPT><A href="http://gyr2.creativecow.net/advertpro/servlet/click/zone?zid=14&pid=0&custom1=&lookup=true&position=1" target="_top" rel="nofollow"><IMG src="http://gyr2.creativecow.net/advertpro/servlet/view/banner/image/zone?zid=14&pid=0&custom1=&position=1" height="60" width="468" hspace="0" vspace="0" border="0"></A></NOSCRIPT></div><hr size=1><a name='72'></a><table border=0 cellpadding=0 cellspacing=0 class='gd'><tr><td class='gd_tl'></td><td></td><td class='gd_tr'></td></tr><tr><td></td><td class='gd_m'><div style='float:right;' align='right'></div><table border=0 cellpadding=0 cellspacing=0><tr><td valign='middle'><b>Re: Template doesn't parse datasource</b><br>by <a href="http://forums.creativecow.net/profile/153365">Richard Williams</a> on Oct 6, 2009 at 3:36:36 pm</td></tr></table><br clear='all'>I like your approach. I have been parsing/filling RSS feeds using biterscripting ( <a rel="nofollow" href='http://www.biterscripting.com'>http://www.biterscripting.com</a> ). I wonder how you would compare that approach to your approach. Any other scripting languages ? <br> <br>Richard <br><br clear='all' /><br /><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td valign='middle'><a href='http://forums.creativecow.net/readpost/256/72#reply_box'>Respond to this post</a>   •   <a href='http://forums.creativecow.net/1080dots#72'>Return to posts index</a></tr></table></td><td></td></tr><tr><td class='gd_bl'></td><td></td><td class='gd_br'></td></tr></table><hr size=1> <a name='73'></a><table border=0 cellpadding=0 cellspacing=0 class='ge'><tr><td class='ge_tl'></td><td></td><td class='ge_tr'></td></tr><tr><td></td><td class='gd_m'><div style='float:right;' align='right'></div><table border=0 cellpadding=0 cellspacing=0><tr><td valign='middle'><b>Re: Template doesn't parse datasource</b><br>by <a href="http://forums.creativecow.net/profile/75438">Daniel Westergren</a> on Oct 6, 2009 at 6:03:16 pm</td></tr></table><br clear='all'>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 <a rel="nofollow" href='http://magpierss.sourceforge.net/'>MagpieRSS</a> for parsing the RSS feeds. <br> <br>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. <br> <br>Will check out biterscripting. <br> <br> <br clear='all' /><br /><table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td valign='middle'><a href='http://forums.creativecow.net/readpost/256/73#reply_box'>Respond to this post</a>   •   <a href='http://forums.creativecow.net/1080dots#73'>Return to posts index</a></tr></table></td><td></td></tr><tr><td class='ge_bl'></td><td></td><td class='ge_br'></td></tr></table><hr size=1> <table border="0" cellpadding="0" cellspacing="0" class="gc"><tr><td class="gc_tl"></td><td></td><td class="gc_tr"></td></tr><tr><td></td><td class="gc_m" align="center" style="font-weight:normal;"> <a href="http://forums.creativecow.net/thread/256/58" target="_top" title="News: 1080dots Digital Signage released their Network Enabled version: 1080dots DS Player+ at IBC"><< PREVIOUS THREAD</a>   •   <a href="http://forums.creativecow.net/1080dots" target="_top" title="1080dots Forum">VIEW ALL THREADS</a>   •   <a href='/print.php?forumid=256&postid=60' rel="nofollow">PRINT</a>   •   <a href="http://forums.creativecow.net/thread/256/69" target="_top" title="Displaying song metadata">NEXT THREAD >></a> </td><td></td></tr><tr><td class="gc_bl"></td><td></td><td class="gc_br"></td></tr></table> </td><td valign="top" style="padding:6px 10px 0px 0px;"> <SCRIPT language="JavaScript" type="text/javascript"> document.write('<SCR'+'IPT src="http://gyr.creativecow.net/advertpro/servlet/view/banner/unique/javascript/strip?zid=11&pid=0&total=6&layout=vertical&margin=0&padding=6&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>'); </SCRIPT> <NOSCRIPT><IFRAME src="http://gyr.creativecow.net/advertpro/servlet/view/banner/unique/html/strip?zid=11&pid=0&total=6&layout=vertical&margin=0&padding=6" height="1590" width="150" hspace="0" vspace="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></IFRAME></NOSCRIPT> <div style="padding-top:6px;"> <SCRIPT language="JavaScript" type="text/javascript"> document.write('<SCR'+'IPT src="http://gyr.creativecow.net/advertpro/servlet/view/banner/javascript/zone?zid=13&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>'); </SCRIPT> <NOSCRIPT> <A href="http://gyr.creativecow.net/advertpro/servlet/click/zone?zid=13&pid=0&lookup=true&position=1" target="_top" rel="nofollow"><IMG src="http://gyr.creativecow.net/advertpro/servlet/view/banner/image/zone?zid=13&pid=0&position=1" height="150" width="150" hspace="0" vspace="0" border="0"></A> </NOSCRIPT> </div> </td></tr></table></td></tr><tr><td align="center" id="m2"><SCRIPT language="JavaScript" type="text/javascript"> document.write('<SCR'+'IPT src="http://gyr.creativecow.net/advertpro/servlet/view/banner/javascript/zone?zid=16&pid=0&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>'); </SCRIPT> <NOSCRIPT><A href="http://gyr.creativecow.net/advertpro/servlet/click/zone?zid=16&pid=0&lookup=true&position=1" target="_top" rel="nofollow"><IMG src="http://gyr.creativecow.net/advertpro/servlet/view/banner/image/zone?zid=16&pid=0&position=1" height="90" width="728" hspace="0" vspace="0" border="0"></A></NOSCRIPT> <br><br> <a href="http://forums.creativecow.net/">FORUMS</a> • <a href="http://library.creativecow.net/">TUTORIALS</a> • <a href="http://magazine.creativecow.net/">MAGAZINE</a> • <a href="http://training.creativecow.net/">TRAINING</a> • <a href="http://reels.creativecow.net/">VIDEOS - REELS</a> • <a href="http://podcasts.creativecow.net/">PODCASTS</a> • <a href="http://events.creativecow.net/">EVENTS</a> • <a href="http://services.creativecow.net/">SERVICES</a> • <a href="http://newsletters.creativecow.net/">NEWSLETTER</a> • <a href="http://news.creativecow.net/">NEWS</a> • <a href="http://blogs.creativecow.net/">BLOGS</a> <br><br>© <a href='http://www.creativecow.net'>CreativeCOW.net</a> All rights are reserved.<br><br> [<a href='#top'>Top</a>]</td></tr><tr><td id="b1"></td></tr></table> <!-- Start Quantcast tag --> <script type="text/javascript"> _qoptions={ qacct:"p-e9pxdOcd9v2qk" }; </script> <script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script> <noscript> <img src="http://pixel.quantserve.com/pixel/p-e9pxdOcd9v2qk.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/> </noscript> <!-- End Quantcast tag --> </body> </html>