Configurable sidebar (News section) in Community Server

December 18, 2006

Customising your blog when you don’t host it yourself can be pain. 

Heaps of blogs out there are on Community Server. blogs.msdn.com is one of the more prominent ones. msmvps.com is too. Having previously been on blogspot.com, where you can control almost every aspect of your template, I’ve found the transition to Community Server a little painful at times.

There are a bunch of skins I can choose from, and that’s great, but if I want to change the information that appears down the side, I need to put it into the News section. But then it looks like it’s News, when really it’s not.

So I’ve made a few workarounds.

For starters, I’ve added some custom CSS to the spot where I choose a skin. In particular, I’ve told the newsTitle style to be hidden. “display:none;” is the code you want, like this:

.newsTitle
{
    display:none;
}
 

Now because I still want my stuff to display in sections, I’ve done some more tweaking. Within the News section, I’ve defined my own. So I have things like this in there:

<div class=”sideNavItems”><h3>Can’t find something?</h3>Try checking my old blog…<br /><a href=’http://robfarley.blogspot.com’>http://robfarley.blogspot.com</a></div>

The ‘sideNavItems’ bit puts the box around it (or whatever your skin wants it to do), and the ‘h3’ makes the header the same style as the other sections. This makes it look like it’s a proper Community Server section, but it’s not. It’s just my own content. So now I can have my own lists, and exercise as much control over them as I like.

Leave a Reply

LobsterPot Blogs

Blog posts by Rob Farley and other LobsterPot Solutions team members.

Search