Using the SharePoint API to Configure an Expiration Policy on a Document Library

While it typically takes less than a minute or two to configure an expiration policy on a SharePoint document library, there may still be reasons why you want to do this using the SharePoint object model instead. For example, suppose I have a “Temporary Files” document library for which I want the files to be…

0

Missing thumbnail images in SharePoint?…You probably forgot to specify the "ContentType" property

During the process of creating my previous post, I discovered the thumbnail images were not rendering as expected for the custom images that I added to the out-of-the-box SharePoint /PublishingImages picture library (via a feature). Here is the content of my original Elements.xml file (used to add the images to the library): <?xml version=”1.0″ encoding=”utf-8″…

1

Reusable Content in SharePoint Publishing HTML Fields, Part 3

In part 2 of this series, I explained how to programmatically add a new Reusable Content list item and subsequently add it to a Publishing HTML field on a page. I also provided a complete sample for SharePoint 2010 that demonstrates how this can be accomplished with minimal effort (thanks to some nitfy helper classes)….

0

Reusable Content in SharePoint Publishing HTML Fields, Part 2

In my previous post, I introduced a scenario for using the “Reusable Content” feature in Microsoft Office SharePoint Server (MOSS) 2007 and SharePoint Server 2010. In this post, I show you how to programmatically add Reusable Content list items (which is very helpful when deploying to multiple environments, such as DEV, TEST, and PROD) as…

0

Reusable Content in SharePoint Publishing HTML Fields, Part 1

In one of the sprints last year for my current project, I built a custom “document publishing” system based on the Web Content Management (WCM) features in Microsoft Office SharePoint Server (MOSS) 2007. My client was looking to replace a legacy system used to create Microsoft Word documents that are essentially “standard operating procedures” for…

0

Localization and SharePoint Solutions, Part 3 (a.k.a. use field IDs whenever possible)

In part 1 of this series, I mentioned that one of the options for creating SharePoint sites in multiple languages is to install the corresponding SharePoint language packs prior to creating the sites. This is the most common deployment scenario for localization. [An alternative localization approach that we used years ago on the Agilent Technologies…

0

Localization and SharePoint Solutions, Part 2 (a.k.a. the CurrentUICultureSwitcher class)

In part 1 of this series, I mentioned how I’ve been involved in several SharePoint projects for large, multinational corporations including Agilent Technologies and KPMG. I also mentioned how one of the sprints last year for my current project was dedicated to creating a Spanish version of a “Client Portal” based on Microsoft Office SharePoint…

0

Upgrading a Custom MOSS 2007 Solution to SharePoint Server 2010

In yesterday’s post, I provided a custom SharePoint Server 2010 solution based on Dan Cederholm’s sample site for the fictitious Tugboat Coffee company (from his book Handcrafted CSS : More Bulletproof Web Design). Since I had originally “ported” the Tugboat site to Microsoft Office SharePoint Server (MOSS) 2007, most of the effort in getting the…

0

Virtual Machine Snapshots and SharePoint Development, Part 2

In part 1 of this post, I introduced the way I use VM snapshots to allow me to quickly rollback my SharePoint development VMs to key points in time. For example, I can quickly revert to a “baseline SharePoint Server 2010 configuration” in which no Web applications have been created (besides Central Administration) and the…

0

Virtual Machine Snapshots and SharePoint Development, Part 1

In a comment I made last week on one of my earlier posts, I mentioned how a few months ago I started using Hyper-V snapshots so I can quickly rollback my SharePoint development VMs to key points in time. The following screenshot shows the snapshots for my primary SharePoint Server 2010 development VM (FOOBAR5): Figure…

0