MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

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

Viewed 9443 time(s), 2 post(s) 4/24/2014 4:49:40 PMby super
super

super

4/24/2014 4:49:40 PM
I am trying to create a RSS feed and need url for each blog post - is URL for each blog post saved somewhere ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
dbogdan

dbogdan

4/25/2014 7:27:16 AM
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
This content has not been rated yet. 
231 Reputation 38 Total posts