By Sandi Beach on Wednesday, 27 April 2016
Posted in General Issues
Replies 5
Likes 0
Views 846
Votes 0
We have a client who was upset that their EasyBlog RSS feed displays the raw RSS in Chrome and has no functionality. We explained to them that there is no native Chrome support for RSS. They countered that they have another website where an RSS feed works just fine in Chrome. We were surprised to see that this is true!

It's being done by supplying an XSLT stylesheet, so Chrome will transform the RSS feed to HTML on the fly. It really does work! If I view source, there is nothing there except the RSS feed, with the addition of the call to the XSLT stylesheet.

<?xml version="1.0" encoding="UTF-8"?>
<!--RSS generated by Microsoft SharePoint Foundation RSS Generator on 4/26/2016 1:09:15 PM -->
<?xml-stylesheet type="text/xsl" href="/News-Events/press_releases/_layouts/RssXslt.aspx?List=blahblahblahabcdefghijklmetc" version="1.0"?>
<rss version="2.0">
<channel>


etc.

Is this something we could do with EasyBlog? If so, how?
Hey there,

Firstly, I think your client is missing the idea of what an RSS feed really is. It really doesn't make sense at all to even render these items on a web browser.

The main purpose of RSS feeds is to allow your feed readers to receive updates via RSS. What is the point of browsing it with a web browser? Why would you want to style the rss feed when it isn't meant for users to browse on the web?
·
Wednesday, 27 April 2016 16:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, you sound exactly like our discussion (internally) ... however, they do have another site that "makes it work" in Chrome, so that's what they want. I know, I know ...

So ... is there a good way we could insert the XSLT call into the RXX output of EaysBlog?
·
Monday, 02 May 2016 22:31
·
0 Likes
·
0 Votes
·
0 Comments
·
The only way to insert an XSLT is to hack the view.feed.php file in the views to inject the xslt stylesheets into the document. I am not too sure if Joomla supports that but you can try editing the file /components/com_easyblog/views/latest/view.feed.php
·
Monday, 02 May 2016 23:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for this pointer. I'm a tad lost here ... I found that file, and while it does not seem to be overridable in the template, I can edit it in place (core hack to EasyBlog).

I'm assuming we'd need to use addStyleDeclaration somehow? Where would we add it?
·
Tuesday, 03 May 2016 04:38
·
0 Likes
·
0 Votes
·
0 Comments
·
I believe you need to fiddle around with the document object of Joomla. You could try something like this,



But really, I think as a web development company / agent, it is your role and responsibility to knock some sense into your customer. Why would they event want web browsers to access the rss feed It's meant for rss readers and that's the purpose of what an RSS feed is for
·
Tuesday, 03 May 2016 11:08
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post