Limit the rss text size

Topics: ASP.NET 2.0
Nov 20, 2009 at 5:44 AM

Is there any way to limit the rss that BE creates in  Subscribe page.

I want it to set 200 chars or something.

Thanks

Nov 20, 2009 at 8:11 AM

I wanted to achieve this as well.. I end it up modifying the SyndicationGenerator.cs in the core logic.  Following places you have to edit:
Line number: 525

//------------------------------------------------------------
//    Modify post content to make references absolute
//------------------------------------------------------------    
            string content = ConvertPathsToAbsolute(arg.Body);
//ikaran - ShowExcerpt
            content = Utils.StripHtml(content);
            if (content.Length > 200)
                content = content.Substring(0, 200) + "...";


Line  number: 789
//------------------------------------------------------------
//    Modify publishable content to make references absolute
//------------------------------------------------------------
    string content = ConvertPathsToAbsolute(arg.Body);
            
//ikaran - ShowExcerpt
            content = Utils.StripHtml(content);
            if (content.Length > 200)
                content = content.Substring(0, 200) + "...";


You will need to recompile the project.