Rss feed | Community
Skip to main content
Level 2
October 16, 2015
Solved

Rss feed

  • October 16, 2015
  • 4 replies
  • 2466 views

Has anyone tried generating the custom rss fed in cq.????

I am able to generate the xml file for rss feed but dont know how to achieve the html form as shown in the attached file.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ojjis

That looks ok to me. That is how the standard feed also would look like in CQ/AEM.
You ARE creating a RSS feed and you get the desired output. The RSS links (eg. somerandomsite.com/blogs/myblog/2/februaryblog.feed.xml) are not supposed to show a nice looking html site and chrome will certainly not try to display it in any other way. They are supposed to be red by RSS readers.

You already have the normal blog .jsp files for the normal presentation of the blog and it's blogentries :)
So try to download a RSS reader and see what it does with the RSS you have created. I'm sure it will work fine.

/Johan

4 replies

Ojjis
Level 7
October 16, 2015

Hello Punith,
the structure of a normal RSS feed is xml like (http://www.rssboard.org/rss-specification) and you do not have to create a html version. Some web browsers however have the native ability to translate that into something that looks like html straight away (like Firefox). Usually, when subscribing to RSS feeds, you use a RSS reader/aggregator of some kind and they will take care of the display for you :) 

If one would want to create a html like the one you provided as a screenshot, it would be very easy to achieve just be extending the normal list component and changing the layout of the output. But in your case I don't think you have anything to worry about since you already have been able to generate the xml file.

Regards
Johan

Level 2
October 16, 2015

Hi Johan,

I have tried printing the output in monzilla, but i am not able to achieve it in the desired html form.

Level 2
October 16, 2015

I am getting the output, as shown in the below attached doc.
 

Ojjis
OjjisAccepted solution
Level 7
October 16, 2015

That looks ok to me. That is how the standard feed also would look like in CQ/AEM.
You ARE creating a RSS feed and you get the desired output. The RSS links (eg. somerandomsite.com/blogs/myblog/2/februaryblog.feed.xml) are not supposed to show a nice looking html site and chrome will certainly not try to display it in any other way. They are supposed to be red by RSS readers.

You already have the normal blog .jsp files for the normal presentation of the blog and it's blogentries :)
So try to download a RSS reader and see what it does with the RSS you have created. I'm sure it will work fine.

/Johan