Archive of posts from March 2012

Finding Files Linked To A Specific File (Publishing Pages Linked to a Specific Page Layout)
Monday, March 19, 2012

Ever had a need to find all of the files in a site collection that link to a specific file? A colleague of mine made an excellent find a few weeks ago and taught me this gem from the SharePoint object model. He had a need to find all publishing page layouts on a site and catalog which were being used and which weren’t. Check out his post here: SharePoint Fix: Powershell script to get SharePoint Page Layouts inventory and its usage across site collection

Passing Parameters to Delegate Controls
Tuesday, March 13, 2012

I have a requirement for a DelegateControl where I need the child candidate control to render a link that opens in a new window in certain instances of the DelegateControl and open the link in the same window otherwise. The design that made the most sense to me was to use the same code for the child control to compute and render the link in both circumstances and pass a boolean parameter, OpenLinkInNewWindow, to control the target of the link.

Stuck Keys?
Thursday, March 8, 2012

I was in the middle of a SharePoint demo this morning, was typing some input, and all of the sudden my development server was going crazy! It turns out to be a problem I’ve encountered many times before. The “e” key started Windows Explorer. The “r” key started the Run dialog. The list goes on. It’s so frustrating!