Developer forum

Forum » Development » RSS feed

Reply

I'm trying to modify the RSS feed, so author doesent change and or show by the one who created the news item (we use the rss feed to publish news feed via the news module).

 

Anyway.

 

I was trying to override the render method of default.aspx however it doesent get hit when you add the parameter Action=ShowFile to the page, which shows the RSS feed. I've triede also onPreRender, however still no hit.

 

So im wondering, can i find it in Page_Load?, or how am i suppost to get in to it, it seems like you guys stopped the rendering method in the module to avoid DW rendering anything out, so the RSS feed is clean but like that suxs for me?

Any adwise would be awesome cause i feel kinda stuck.


Replies

 
Reply

anyone? :)

 
Reply

What does your Default.aspx inherit from? It should inherit from [YourNamespace].Default which by default is CustomModules.Default, and if so, then we don't override anything. If it inherits from Dynamicweb.Admin.Load that's a whole different matter.

 
Reply


My default.aspx.cs inherits from CustomModules.Default


The problem isent weather its working or not as it is works on every single page of the hole solution except when the rss module shows the rss feed. And i need to change the output of the rss feed which is kinda hard when it doesent hit the render method which i override :( so my question is what can i do to hit the rss feed.
 

 
Reply

Could you post a link to the feed?

   
Reply

The RSS module generates the XML, flushes this to the client and ends the response. Anything you need to modify you should do in Page_Load of Default.aspx before Dynamicweb is invoked. Dynamicweb does normal processing until the RSS module is invoked, and this module is responsible for the behavior you're descibing, so it puzzles me what you're describing.

 

If you can't make it work, you could create a module that opens the page containing the feed, removes the unwanted information from the XML and returns the remainder of the feed to the browser.

 
Reply

i simply had no chance to edit this page, it would be great to get a XSLT option on this module.

I fixed the issue by using the page prio to the xml file and simply make the template XML and do some nifty replacing of everything around the xml document inside the html page.

 
Reply

Happy to hear that you sorted it out:)

 

You must be logged in to post in the forum