Omicron Llama

Coding all day, every day.

Feature Stapling – The TL;DR Version

In a Site-Scoped Feature, have this line in the Elements.xml:

The Id here is the GUID of a Web-Scoped Feature you want to activate every time a Sub-Web of template STS#0 (Team Site) is created. Simples.

Programmatically Update a Content Type

Here’s a straight forward one. For some reason (don’t ask) I had to update a content type in a Feature Receiver (I would have preferred to have created a new content type and inherit) by adding a new field to it. Here’s the code, purely for my personal reference but open in case other people […]

Summary Links – Show Images For Groups

The Summary Links Field or Web Part can be really useful to show a bunch of links and have them displayed in groups. It’s also quite cool how you can display an image beside each link if you so wish. But when you create a Group, you can’t assign an image to that group such […]

SharePoint 2010 Performance with Item Level Permissions

Tonight’s little project was inspired by a conversation on Twitter with @WonderLaura and @Toddklindt. Laura had asked about the implications of lots of item-level permissions in a big list in SharePoint (here), to which Todd replied with this, and followed up with this and this. So this got me thinking: where is the performance bottleneck […]

Text-only Description field in Google News RSS Feeds in XSLT

One annoying thing about Google’s awesome RSS feed from its news site is the Description field. If you look at the XML generated by http://news.google.com/news?q=sharepoint&output=rss for example, you’ll see the Description field is flooded with lots of crap, un-needed, encoded HTML, instead of the pure description in plain text as you’d expect (and probably what […]

Blog Templates

In a moment of uber-geekery, I decided to use Blogger’s awesome Template Designer to skin my blog the same as an IIS crash page. Purely for giggles. Will probably change it back in a bit.

Previous Posts Next posts