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 )

17926 put(a) pogledan, 2 odgovor(a) 10.3.2014. 11:17:13Kreirao(la) panos.pag

Povezane teme

panos-pag

panos.pag

10.3.2014. 11:17:13
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
Ovaj sadržaj još nije ocijenjen. 
390 Reputacija 35 Ukupno objava
khorvat

khorvat

11.3.2014. 8:01:05
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava