# CMS v4 RSS feed with custom tag "category"

**URL:** https://community.xibo.org.uk/t/cms-v4-rss-feed-with-custom-tag-category/31918
**Category:** CMS Features and Functionality
**Created:** [June 11, 2024, 3:17pm UTC](https://community.xibo.org.uk/t/cms-v4-rss-feed-with-custom-tag-category/31918 "2024-06-11T15:17:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![embedit](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/e/839c29/32.png) [@embedit](https://community.xibo.org.uk/u/embedit)
#### Post date: [June 11, 2024, 3:17pm UTC](https://community.xibo.org.uk/t/cms-v4-rss-feed-with-custom-tag-category/31918/1 "2024-06-11T15:17:23Z")

</div>

Hello!

I want to use the tag “category” of a RSS feed in my layout but I can’t find the explanation how.  
The tag is in the item list and looks like:

`<category domain="desk">SI</category>`

I v3 we used html and javascript to handle that with [category|]  
How to use that in the v4 RSS ticker widget?

Thank you.

---

<div class="post-metadata">

### Author: ![embedit](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/e/839c29/32.png) [@embedit](https://community.xibo.org.uk/u/embedit)
#### Post date: [June 12, 2024, 9:26am UTC](https://community.xibo.org.uk/t/cms-v4-rss-feed-with-custom-tag-category/31918/2 "2024-06-12T09:26:20Z")

</div>

It seems that I need to create my own module that supports the additional tag.  
The “allowed attributes” field is not used in 4.0.12  
[RssProvider.php](https://github.com/xibosignage/xibo-cms/blob/6e9f12ed2d7bcebff5c7fb83d54759e83130c854/lib/Widget/RssProvider.php#L101)  
Is that right?  
If right, I think that I need to copy

> modules/rss-ticker.xml  
> modules/templates/article-elements.xml  
> lib/Widget/RssProvider.php  
> lib/Widget/DataType/Article.php

to custom folder and extend it with the additional tag that I need.  
In RssProvider.php I am able to modify the tag content and add the new variable to Article.php

Can that be the right way or am I completely wrong?

I have that from developer documentation [Creating a module](https://xibosignage.com/docs/developer/widgets/creating-a-module)

---

<div class="post-metadata">

### Author: ![embedit](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/e/839c29/32.png) [@embedit](https://community.xibo.org.uk/u/embedit)
#### Post date: [July 1, 2024, 12:00pm UTC](https://community.xibo.org.uk/t/cms-v4-rss-feed-with-custom-tag-category/31918/3 "2024-07-01T12:00:03Z")

</div>

Hi!

I have now created a custom module by copying the rss-ticker files and where I added the category tag and some handling of this tag (replacing shortcuts with full names).  
The new module is working as needed - yeah!  
Now my last problem is that the setting of the durations is not working.  
One error I have found is that at the original RSS-Ticker module the settings for cache and image update are not taken from the widget - they are taken from the module settings.

At the custom RSS module that I have added it is the same but additionally the checkbox for “time per item” is not working. The duration for the feed is being taken always.

Unfortunately I am not able to upload a zip of the code, so I just can explain it. Otherwise it would be a very long post…

Any help on this issue?

---

<div class="post-metadata">

### Author: ![system](https://community.xibo.org.uk/uploads/default/original/2X/a/a8759c2d8cc561474733895ac75beeb830f5d8ca.png) [@system](https://community.xibo.org.uk/u/system)
#### Post date: [September 30, 2024, 6:00pm UTC](https://community.xibo.org.uk/t/cms-v4-rss-feed-with-custom-tag-category/31918/4 "2024-09-30T18:00:10Z")

</div>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.
