Mono Support Is blog URL saved somewhere in the database table ? 

Viewed 10361 time(s), 2 post(s), 4/24/2014 4:49:40 PM - by super
4/24/2014 4:49:40 PM
6018 Reputation 709 Total posts

I am trying to create a RSS feed and need url for each blog post - is URL for each blog post saved somewhere ?

1
4/25/2014 7:27:16 AM
231 Reputation 38 Total posts

Hi Super,

we don't have URL for each blog post (saved in the database). However you can create URL for each blog post dynamically.

In the BaseBlogPart class, you can find FormatBlogPostUrl method, which will return you URL of the specified blog post. So basically while you're populating RssChannel with a RssChannelItem objects, you can call something like this:

RssChannelItem rssItem = new RssChannelItem();
...
rssItem.Link = UrlFormatter.ResolveServerUrl(this.FormatBlogPostUrl(blogPost));
...
_rssChannel.Items.Add(rssItem);
Regards

2
This is a demo site for MonoX. Please visit Mono Software for more info.