Custom tags in XML/RSS ticker

Hello

Currently doing an implementation of Xibo in our company. I really like it so far!
However I have ran into a few issues. First one is with the RSS feed:

We are using Sharepoint for our intranet page. I would like to retrieve news from our news page directly into Xibo.
Sadly I could not get this to work and I read through the forums that Xibo does not support RSS with authentication (like Sharepoint uses). So my workaround for this was to have a task sheduled powershell script retrieve the rss page as a .xml file. This works fine, however Sharepoint loves to put all the information in a CDATA section (theres probably a good reason that I dont know of). My first workaround here was to have the powershell script do some additional formatting on the xml file after downloading, and then save it again to the same location.

I can successfully retrieve the CDATA values and put them into their own nodes in the xml structure.
However, I can not display these with the Xibo Ticker module.

I have tried every method for displaying these, including creating a private namespace within the xml file. but nothing worked. The [tag|namespace] and every variation of it didnt work either.

Lets say xibo got served a completely custom xml file (every node outside of the rss scope). Would it be able to read it? Long text, but I hope some of you have some tips that could help me cause I am stuck at the moment…
For now, we are taking screenshots of the news and then uploading .pngs to the Xibo CMS, which is a big timewaste.

Thank you in advance.

So you tried something similar to this? Display internal Sharepoint RSS feed in Xibo 1.7.x

as for the custom tags, this should work How to extract extra data fields from RSS?

Perhaps if you would show us the xml with feed (or at least part of it) and tell us what did you try to extract it, we’d tell you if it should work or not :wink:

1 Like

First link is actually what I am doing now, credit to the original writer :smile:
The problem is not getting the xml file from Sharepoint. The problem arises when I try to add custom rss nodes in the file and read them with the Xibo ticker.

The xml looks like this (stripped some text out):

<?xml version="1.0" encoding="UTF-8"?>
<!--RSS er generert av RSS-generatoren for Microsoft SharePoint Foundation på 22.02.2016 11:25:45 -->
<?xml-stylesheet type="text/xsl" href="/Nyheter/_layouts/15/RssXslt.aspx?List=f4c9af63-c4c4-44a6-8664-0a20e4a84309" version="1.0"?>
**<rss version="2.0" xmlns:hf="SOME_URI">**
    <channel>
         ....
         <item>
              <title></title>
              <link></link>
              <description><![CDATA[<div><b>Sidebilde:</b> <img alt="" src="... style="BORDER: 0px solid; "></div>
                       <div><b>Oppsummering:</b> Here is some text.</div>
                       <div><b>Tittel:</b> Here is also some text</div>]]>
              </description>
              <author></author>
              <pubDate></pubDate>
              <guid isPermaLink="true"></guid>
              **<hf:oppsummering>HERE IS SOME TEXT</Oppsummering>**

The hf:oppsummering node is custom made and it’s contents comes from the CDATA of the node.
(Basically just copy text and create a new node via powershell).

However, I have tried all methods of displaying this in the ticker module.
[|hf:oppsummering]
[hf|oppsummering]
[oppsummering|hf]
etc

None of these work. If I only include the standard fields like and they display nicely, but custom fields shows nothing.

Please let me know if you need more samples :wink:

I have the same problem. How can I add custom fields from the following xml to a ticker?

This is the xml file I use. I can’t change fieldnames and it is dynamicly generated

<?xml version="1.0" encoding="utf-8"?> Schema http://www.mhcflevoland.nl/ Tue, 22 Mar 2016 13:00:23 GMT Meisjes E1 Kampen ME3 09:15 Meisjes B5 Zwolle MB13 14:15 Maaike Kamps Erik Talens Meisjes C2 Zwolle MC6 14:30 Benthe van de Water Edzard van de Water

I’m facing a similar problem with the following feed: http://pox.globo.com/rss/g1/

I’m trying to get the picture URL from media:content tag attribute to use in a src, but no success.

I’ve tried [content|http://search.yahoo.com/mrss/|url] and [content|media|url] following the [tagname|namespace|attributename] format.

Here is a sample of the XML:

<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<channel>
<title>G1</title>
<link>http://g1.globo.com/index.html</link>
<description>
Últimas notícias de economia, política, carros, emprego, educação, ciência, saúde, cultura do Brasil e do mundo. Vídeos dos telejornais da TV Globo e da GloboNews.
</description>
<language>pt-BR</language>
<copyright>© Copyright Globo Comunicação e Participações S.A.</copyright>
<atom:link href="http://pox.globo.com/rss/g1/" rel="self" type="application/rss+xml"/>
<image>
<url>
https://s2.glbimg.com/veNWQCjPmWVRAfzfLSJt35f_V58=/i.s3.glbimg.com/v1/AUTH_afd7a7aa13da4265ba6d93a18f8aa19e/pox/g1.png
</url>
<title>G1</title>
<link>http://g1.globo.com/index.html</link>
<width>144</width>
<height>144</height>
</image>
<item>
<title>
Ponte após curva e com placas escondidas vira 'local ideal' para acidentes, reclamam moradores
</title>
<link>
http://g1.globo.com/sao-paulo/itapetininga-regiao/noticia/ponte-apos-curva-e-com-placas-escondidas-vira-local-ideal-para-acidentes-reclamam-moradores.ghtml
</link>
<guid isPermaLink="true">
http://g1.globo.com/sao-paulo/itapetininga-regiao/noticia/ponte-apos-curva-e-com-placas-escondidas-vira-local-ideal-para-acidentes-reclamam-moradores.ghtml
</guid>
<description>
<![CDATA[
<img src="https://s2.glbimg.com/F7ANNE_WrTn67zMqiC_eTB2xRD8=/i.s3.glbimg.com/v1/AUTH_59edd422c0c84a879bd37670ae4f538a/internal_photos/bs/2017/H/M/EIXtlsQeaDEWS36fIWeQ/placas.jpg" /><br />
]]>
Ponte fica em um trecho da vicinal José de Almeida Rosa, em Pilar do Sul. DER afirma que acionará empresa que contratou para conservar o local.
</description>
<media:content url="https://s2.glbimg.com/F7ANNE_WrTn67zMqiC_eTB2xRD8=/i.s3.glbimg.com/v1/AUTH_59edd422c0c84a879bd37670ae4f538a/internal_photos/bs/2017/H/M/EIXtlsQeaDEWS36fIWeQ/placas.jpg" medium="image"/>
<category>G1</category>
<pubDate>Tue, 25 Apr 2017 18:10:21 -0000</pubDate>
</item>

Any idea how to correctly get the url attribute from media:content tag?

I’m using Xibo CMS version 1.8.1

Thank you

After some research, I’ve found out the solution in another thread. It’s possible to get the image from media:content tag by using [media:content|image|url]

I cannot understand why it’s giving me what I need, but I want to. Is there any documentation of the RSS parser used by Xibo?

Thank you

If I recall correctly, Xibo 1.8 is using “picoFeed” - 1.7 had used “simplePie” but that was unmaintained.

There is some documentation available here: