Hello,
we pull in an RSS feed of travel information. Each item in the feed in the title starts either:
[Slight]
[Medium]
[Severe]
Firstly how can I order the list so it appears (also would be nice to colour them so [Severe] is hi-lighted red)
[Severe]
[Medium]
[Slight]
Then if a [Severe] is displayed I would like this to be sent to an shown on the front page of our Intranet and displayed without any intervention from humans! :blink:
(easier said than done)
I suspect you will need the latest version of Matrix (v3.16.3) as we have added the ability to sort by keyword to the asset listing. However, this will only sort alphabetically, so it may not be exactly what you need.
Is there no way to get three RSS feeds, one for each type? Then you could combine them in one list by specifying each as a root node, but only nest one of them on the home page (the Severe one). That would be a much simpler method.
Otherwise, you may need to write your own RSS Feed asset that extends ours to do the filtering/sorting.
[quote]I suspect you will need the latest version of Matrix (v3.16.3) as we have added the ability to sort by keyword to the asset listing. However, this will only sort alphabetically, so it may not be exactly what you need.
Is there no way to get three RSS feeds, one for each type? Then you could combine them in one list by specifying each as a root node, but only nest one of them on the home page (the Severe one). That would be a much simpler method.
Otherwise, you may need to write your own RSS Feed asset that extends ours to do the filtering/sorting.[/quote]
Well what I decided to do was use SimplePie PHP (http://simplepie.org/) class to grab the feed as this gave me great control. As well as reordering it allows me to do pretty much what I like by adding in custom php. For example I used Str_replace to replace some words in the feed and re-style it.
Once I had the feed as I wanted I then simply used a remote content page to add it to the CMS - works very well.
Groovy. :) I've used MagpieRSS for similar purposes. Though, our newly improved RSS Feed Reader asset does a lot of this stuff too. Not content replacement though.