Open mouchetbj opened 6 years ago
Not sure if it's related, but the current example feed doesn't validate https://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.tc.gc.ca%2Fmediaroom%2Frss%2Froad.xml
The timezone information looks like it is getting chopped up when the date is feed to the toDateISO
function
@mouchetbj are you using the GCweb theme? and if so which version?
Since WET 4.0.25, which introduce templating with the HTML 5 <template>
element, you may display your feed the way you want. You will only neeed to manually use the Yahoo feed reader API services in order to transform your XML into a JSON file.
See the last working example here: http://wet-boew.github.io/themes-dist/GCWeb/demos/data-json/template-en.html
If you need to format you date before to display it, then you can use a JSON Manager to do it.
@duboisp we are currently using 4.0.25. Ideally we'd like to use the Web Feeds plugin without any customization. While it may be feasible to transform any XML into JSON to make use of the formatting features of , it would be a lot to ask of our content coders. Is there no plan to fix the currently broken Web Feeds plugin?
While it may be feasible to transform any XML into JSON to make use of the formatting
You can do that transformation into JSON the same way as how the Web Feed plugin do. It use the Yahoo API services.
Like:
https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20feed%20where%20url%20%3D%20'http%3A%2F%2Fwww.tc.gc.ca%2Fmediaroom%2Frss%2Froad.xml'%20limit%2019&format=json#/query/results/item
And change http%3A%2F%2Fwww.tc.gc.ca%2Fmediaroom%2Frss%2Froad.xml
for your ATOM Feed URL. Your ATOM feed URL also need to be URL encoded.
Is there no plan to fix the currently broken Web Feeds plugin?
There is nothing planned yet, but you are welcome to submit a PR.
We are trying to employ the WET4 Feeds plugin to display our RSS Feeds. The date is picked up however the time stamp does not get parsed and renders as "00:00"
For example, the element in a feed would have a date as such:
then the Feeds plugin renders the updated date on the screen like this:
[2017-11-25 00:00]
We can rule out this being an issue with the xml as this bug is apparent on the Feeds working examples page: http://wet-boew.github.io/wet-boew/demos/feeds/feeds-en.html
As well, I've tested all versions from 4.0.21 - 4.0.26 with the same result.