Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > How to disable RSS feeds View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
sachin-asentechllc - 5/29/2013 6:19:09 AM
   
How to disable RSS feeds
Hi,

in our site we have used RSS feeds for news and blogs document type. Any update made for a news or blog generates a new RSS feed. I want to disable the RSS feeds for some time till I test the workflow on my site.. How can I do it?

The rss feed pages are implmented as follows.

<rss version="2.0">
<channel>
<title>All News RSS</title>
<link><![CDATA[<%=HttpContext.Current.Request.Url.AbsoluteUri.Remove(HttpContext.Current.Request.Url.AbsoluteUri.Length - HttpContext.Current.Request.Url.PathAndQuery.Length) + HttpContext.Current.Request.ApplicationPath%>]]></link>
<description>All News RSS Feed</description>

<cms:cmsrepeater ID="NewsRepeater" runat="server" OrderBy="NewsReleaseDate DESC" ClassNames="cms.news"
TransformationName="cms.news.rssitem" SelectedItemTransformationName="cms.news.rssitem"
Path="/news/%" WhereCondition="NewsReleaseDate < GetDate()" SelectTopN="20"></cms:cmsrepeater>
</channel>
</rss>


User avatar
Certified Developer 13
Certified Developer 13
kentico_josefd - 5/29/2013 7:16:54 AM
   
RE:How to disable RSS feeds
Hello,

You can temporarily disable the RSS feed by setting its visibility property to false. This will remove the web part from live site and make the RSS link inaccessible.

I would suggest creating a development instance of Kentico CMS for this kind of testing, to avoid similar issues in the future.

Regards,
Josef Dvorak

User avatar
Certified Developer v7
Certified  Developer v7
sachin-asentechllc - 5/29/2013 7:24:35 AM
   
RE:How to disable RSS feeds
Hi Josef,

Do you mean to say I should set Repeater's visibility to false or the complete page..

Thanks and regards,
Sachin

User avatar
Certified Developer 13
Certified Developer 13
kentico_josefd - 5/29/2013 8:54:55 AM
   
RE:How to disable RSS feeds
Hello,

Yes, I meant the repeater property, but of course if you can remove the entire page for a while, it would be even better.

Previously I mentioned the RSS URL will be disabled by setting the visible property, but this is only true if you were using the RSS web part. Setting the Visible property for repeater will only hide the list of news, not the page itself.

Regards,
Josef Dvorak.