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

Web Standards Design with SharePoint, Part 6

In part 5 of this series, I showed how you can render semantic HTML for SharePoint list items (instead of the out-of-the-box table layout) using the new XsltListViewWebPart in SharePoint 2010. Note You can achieve similar results in Microsoft Office SharePoint Server (MOSS) 2007 using the DataViewWebPart. For those of you that haven’t yet read…

0

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