Category Archives: SharePoint 2007

Windows SharePoint Services 3.0 and Microsoft Office SharePoint Server 2007

CQWP sees a null for a field that has a value.

I spent a great deal of time doing battle with the Content Query Web Part (CQWP) this week. The plan was to provide a page of archived news events showing the event published date followed with the event DisplayTitle and … Continue reading

Posted in SharePoint, SharePoint 2007, Tips and Tricks | Tagged , | Leave a comment

How to flush the SharePoint cache

It is possible to use the CacheManager, an internal class, found in the Microsoft.SharePoint.Publishing assembly to flush the cache as follows -

Posted in .NET Development, SharePoint, SharePoint 2007, SharePoint 2010, SharePoint 2013, Tips and Tricks | Leave a comment

Publishing Page Image disappears when the page is published

I recently created a feature for a publishing site. The deployment included a custom master page, layout and new home page. The feature activated and the home page was editable, allowing me to add a publishing image to the content. … Continue reading

Posted in SharePoint, SharePoint 2007, SharePoint 2010, Tips and Tricks | Leave a comment

Using log4net to log workflows

Log4net is very good at logging events to local log files. However, if you are looking for centralized logging, take great care. If you want – 1. to remove the need of having to add log4net configuration to every web.config. … Continue reading

Posted in .NET Development, SharePoint, SharePoint 2007, SharePoint 2010, SharePoint 2013, Tips and Tricks | Leave a comment

Maintain SPFile version comment and last modified date when moving documents

In overview the strategy is one of replaying history. Each version of the file is reposted to the document library. The comment and last modified date is handled with a combination of SPFile.Checkin() and SPListItem.Update(). Intrigued? Then read on….

Posted in SharePoint, SharePoint 2007, SharePoint 2010 | Tagged , , | Leave a comment