Portal Engine
Version 2.x > Portal Engine > Webpart for external RSS display View modes: 
User avatar
Member
Member
Chunda - 7/5/2008 1:38:24 AM
   
Webpart for external RSS display
Hi,

Is there a webpart for displaying an external RSS feed available? I just need something simple, styles to each item and a simple title. I can adjust the C#/VB.NET code if required to customise it.

Thanks
Paul

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 7/29/2008 6:45:15 AM
   
RE:Webpart for external RSS display
Hi Paul,

Unfortunately, there is no such web part. You can develop it by yourself, or maybe it would be easier to develop just common user control and then use 'User control' web part to add it to page.

Best Regards,

Martin Dobsicek

User avatar
Member
Member
Chunda - 7/29/2008 12:04:18 PM
   
RE:Webpart for external RSS display
Thanks,

I made a small webpart that can be used for this purpose over the weekend. See below:

RSSFeed.ascx:

%@ Control Language="VB" AutoEventWireup="false" CodeFile="RSSFeed.ascx.vb" Inherits="CMSWebParts_MyWebParts_RSSFeed" %>

<asp:Label ID="RssFeed" runat="server">
</asp:Label>

RSSFeed.ascx.vb:

Imports CMS.PortalControls
Imports CMS.GlobalHelper
Imports CMS.TreeEngine
Imports CMS.CMSHelper
Imports CMS.ExtendedControls
Imports System.Xml
Imports System.Xml.Xsl

' Control to allow and RSS feed to be displayed and transformed
'
' PAH 27/07/2008 First version
'

Partial Class CMSWebParts_MyWebParts_RSSFeed
Inherits CMSAbstractWebPart

Private Sub OutputRSS(ByVal RSSUrl As String, ByVal TransformUrl As String)
Dim _xmlDocument As XmlDocument
Dim _xmlOutput As XmlDocument
Dim _xmlReader As XmlReader
Dim _xslTransform As XslTransform

Try
_xmlDocument = New XmlDocument()
_xmlOutput = New XmlDocument()
_xslTransform = New XslTransform()

_xmlDocument.Load(RSSUrl)
_xslTransform.Load(TransformUrl)

_xmlReader = _xslTransform.Transform(_xmlDocument, New XsltArgumentList())
_xmlOutput.Load(_xmlReader)

RssFeed.Text = _xmlOutput.OuterXml
Catch
RssFeed.Text = "<p>Feed is currently unavailble.</p>"
End Try
End Sub

' Read RSS, transform and output result when placeholder control is rendered
Protected Sub RssFeed_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RssFeed.PreRender
OutputRSS(CType(PartInstance.GetValue("RssUrl"), String), CType(PartInstance.GetValue("TransformUrl"), String))
End Sub
End Class

Web part just uses the two properties RssUrl and TranformUrl and applies the XSLT transform to the feed to convert the data. A bit of googling founds some XSLT examples to format the RSS feeds as required.

If you can see any issues with this let me know.

Maybe for the next release it might be a useful webpart to consider.

Thanks
Paul

User avatar
Member
Member
Mark - 10/14/2009 3:51:58 AM
   
RE:Webpart for external RSS display
Hi,

Thanks four your example... One thing, can you tell me where to define the URL of the RSS feed?

Thanks

mark

User avatar
Member
Member
Chunda - 10/14/2009 5:17:14 AM
   
RE:Webpart for external RSS display
When you add the .ascx file as a custom web part (Site Manager/Development/Web Parts) you need to create the two properties for it, RSSUrl and TransformUrl, I made them Text 255 characters. These then appear on the Web Part configuration and can be filled in.

There is also a part on the Market Place that might be worth a try, haven't used it myself yet, see http://devnet.kentico.com/Marketplace/Syndication.aspx

Have fun

User avatar
Member
Member
Mark - 10/14/2009 5:35:19 AM
   
RE:Webpart for external RSS display
Thanks for your help!

mark

User avatar
Member
Member
faysal - 8/26/2010 6:38:48 AM
   
RE:Webpart for external RSS display
I develop a web part for this purpose. Please check the following link.

http://devnet.kentico.com/Marketplace/Web-parts/External-RSS-Feed.aspx

Thanks,
Faysal

User avatar
Member
Member
Saiful-xm-msia - 9/22/2010 3:16:57 AM
   
RE:Webpart for external RSS display
Hi faysal,

I have download the file, but can you explain how to / procedure to use it, thank.

User avatar
Member
Member
faysal - 9/22/2010 8:29:20 AM
   
RE:Webpart for external RSS display
Hi,

The procedure is very simple, you just copy the zip file of my web part into CMSSiteUtils/Import folder. Then log on to your site with the administrator password. Go to the SiteManager. Click on "Sites" tab on the top of the page. Now click on the link 'Import site or objects'. Another page is opened which show the package which you want to import, its shows all the packages which will present inside import folder.
Click on the 'Next' button.

Thats all

Cheer.

User avatar
Member
Member
njhawar-flair-solution - 12/2/2013 4:29:00 AM
   
RE:Webpart for external RSS display
Hello , i need to dispay rss feed using link
like http://devnet.kentico.com/Forums/f16/t4292/Webpart-for-external-RSS-display.aspx?replyto=16443&mode=quote&rss=forums

so any build in web part in kentico 7 which healp me to display on my site Please reply soon ........

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 12/3/2013 4:15:18 AM
   
RE:Webpart for external RSS display
Hello,

This is quite old thread and I would recommend to start new threads according the version you are using. Have you check out our documentation and tried using one of the listed Syndication web parts and widgets?

Best regards,
Juraj Ondrus