RSS Icons

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
11/17/2010 10:03:29 AM
Gravatar
Total Posts 2239

RSS Icons

Hi Joe,

Is there an easy way to skin the RSS icons found in the blog, event calendar pro and feed manager? I know I can copy my own icon named feed.png to the SiteImages directory but that will be overwritten on upgrades and it will affect all sites, so it really isn't skin-able.

Would it be possible to do this with the theme.skin file or a control/setting in the layout.master?

Thanks,
Joe D.

11/18/2010 6:34:58 AM
Gravatar
Total Posts 18439

Re: RSS Icons

Hi Joe,

you can specify the file in user.config by overriding this setting:

<add key="RSSImageFileName" value="feed.png"/>

the file does need to live in the /Data/SiteImages folder

So it is skinnable but not as skinnable as we might like since it is not controlled by the skin and this change will affect all sites in a multi site installation. But at least you can avoid the upgrade issue by using a custom file name.

Best,

Joe

11/18/2010 10:39:11 AM
Gravatar
Total Posts 2239

Re: RSS Icons

Hi Joe,
 
Yeah, I forgot about that .config setting, it should work for now.
 
I was hoping for something a little more skinnable. Would it be possible to put a class on RSS links that way we can use something like I have below?
 
a.rsslink img {display: none;}
a.rsslink {background-image: url('feedicon.png') no-repeat 0 0;}
 
This way, you don't have to go changing every skin that is shipped with mojoPortal but those that want to use a different icon, can do so with out changing site settings.
 
Thanks,
Joe
11/18/2010 12:22:50 PM
Gravatar
Total Posts 18439

Re: RSS Icons

An excellent solution Joe!

I will do it.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.