6 04 2011
In a Site-Scoped Feature, have this line in the Elements.xml:
|
<featuresitetemplateassociation templatename="STS#0"></featuresitetemplateassociation><br> |
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.
4 04 2011
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 […]
2 04 2011
We’re working on a large(ish) project right now in SharePoint 2007 that will quite soon be migrating to SharePoint 2010, so I decided to take the WSPs we’ve had so far (that work fine in 2007) and see how well they’d work in 2010, either as Farm solutions or User (Sandbox) solutions. I came across […]
30 03 2011
Jimmywim | Uncategorized |
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 […]
23 03 2011
So why the hell’s it so slow?This post follows on from my last one when I looked at the developer dashboard to gain insight into where the performance issues came from when you have a large list with lots of item level permissions. In this post I’ll take a deeper look, using the SQL Server […]
10 03 2011
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 […]
21 02 2011
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 […]
11 02 2011
Had a quick frustration today, that some code I had (bog standard SPWebApplication.Sites.Add) would create a site collection fine but had absolutely no content types or site columns. Both galleries were empty. Lists and Libraries had content types (such as Pages) fine, but SFA in the gallery. If you have this, you’re probably doing what […]
8 02 2011
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.
22 01 2011
Just thought I’d pop this here… When you’re setting a custom masterpage for a site in C#, you might just end up with Invalid URL or File Not Found errors when you try to set the property or navigate to the site. You’ve probably tried all sorts of combinations for the path of the masterpage, […]