SharePoint Replaceable Tokens Are (Sometimes) Case-Sensitive

I noticed an odd thing while working with some JavaScript and Custom Actions in SharePoint 2010…the URL tokens (“~site”, “~sitecollection”, etc.) appear to be case sensitive when used in a ScriptBlock attribute (lower-case works, mixed-case does not) but NOT case sensitive when used in the ScriptSrc attribute.  In other words, “~sitecollection” works in either, but “~SiteCollection” only works in ScriptSrc, not ScriptBlock. Continue reading →

Tags , ,
 

CKS:API update and AOP

CKS:API is still moving along. It’s a little behind schedule due to work constraints.  Two new developers have joined the project and I’m looking forward to some additional eyeballs on the code to help tighten it up.  I’m also looking into Aspect-Oriented Programming (AOP)  to overcome one of the big hurdles in CKS:API – littering all of that logging code throughout your codebase.  I’m hoping that AOP will work as advertised (I’m using PostSharp, which seems to be the standard for AOP in .Net) and if it does, then parts of CKS:API will be refactored to make this an option.  PostSharp has a free “community” edition so it won’t necessarily shut anyone out.  You’ll still have the option of manually inserting the logging code on your own, so this is not a show-stopper requirement for using CKS:API if we do go that way. Continue reading →

Tags ,
 

Out of Box Columns are a Pain in the Ass

Before I begin my rant, let me qualify this by saying this only applies if you are building an *application* on top of SharePoint.  If you’re just using it largely out of the box for simple collaboration and content storage then this post likely doesn’t apply to you.  If you’re pushing things a bit and using SharePoint as an application framework, read on… Continue reading →

Tags ,