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 )

10530 put(a) pogledan, 2 odgovor(a) 24.4.2014. 16:49:40Kreirao(la) super
super

super

24.4.2014. 16:49:40
I am trying to create a RSS feed and need url for each blog post - is URL for each blog post saved somewhere ?
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
dbogdan

dbogdan

25.4.2014. 7:27:16
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
Ovaj sadržaj još nije ocijenjen. 
231 Reputacija 38 Ukupno objava