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.

RSS ICON with dropdown list of rss links  (Mono Support )

Viewed 5586 time(s), 2 post(s) 3/10/2014 11:17:13 AMby panos.pag

Related topics

panos-pag

panos.pag

3/10/2014 11:17:13 AM
Hello, We would like to make easy for the user to access the automaticaly created rss feeds in the header by clicking on an rss dropdown menu and then selected the url (e.g. http://monox.mono-software.com/blog/posts/MonoX/?MonoXRssFeed=MonoX )

Is there a simple developed way within monoX or do I have to add a, say Jquery, function?

Thanks in advance,
Panos
This content has not been rated yet. 
390 Reputation 35 Total posts
khorvat

khorvat

3/11/2014 8:01:05 AM
Hi,

you can write few lines of code and have RSS icon for the feed.

- check if current WebPart supports RSS by doing something similar to this
- check if RSS is enabled
- add your link or image button to markup
//OnPreRender
if (typeof(IRssWebPart).IsAssignableFrom(this.GetType()) && ((IRssWebPart)this).RssEnabled)
{
  RssChannel channel = ((IRssWebPart)this).GetRssChannel();
  yourImageButtonOrSomething.Url = channel.Link;
}
Let us know if you need more information.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts