Feeds:
Posts
Comments

Archive for the ‘Development’ Category

Introduction When in a (localized) variations site, certain “list templates” do not show when trying to create a new list. The “list template” is only available in the master variation with the locale set to English. Including list templates in your SharePoint (Visual Studio) projects can be straight forward. On a list do a “save [...]

Read Full Post »

When creating event receivers or workflows it might be interesting to look at the differences between the following SPListItem methods. The differences might be subtle but it can make a huge difference when you have extra event receivers or workflows attached to your SharePoint list or items. Update() Updates the item in the database. Updates [...]

Read Full Post »

We often get Excel files with content to import into SharePoint. Most of the time I fire up Visual Studio and write a small console application to import the Excel data. However with SharePoint 2010 I got the error “The ‘Microsoft.Jet.OLEDB.4.0′ provider is not registered on the local machine”. The idea When I need to [...]

Read Full Post »

Here is a NLog config file that generates a similar log file layout as with the (default) Log4Net settings. This NLog configuration also includes the date in the log file name to mimic the Log4Net ‘rollingFileAppender’ behavior. file: NLog.config

Read Full Post »

When using a custom master page and editing a page in SharePoint 2010 I received a dialog box the following error: “You must specify a value for this required field”. This error is caused when you set the contentplaceholder ‘PlaceHolderPageTitleInTitleArea’ to: Visible=”False”. After removing the Visible=False attribute from the contentplaceholder the error disappeared. As a [...]

Read Full Post »

To format data in SharePoint I often use xslt. The default formatting of dates however is pretty useless <xsl:value-of select=”@YourDateParam”/> Results in : 2009-03-23 00:00:00   You can also use a predefined locale like this: <xsl:value-of select=”ddwrt:FormatDate(@YourDateParam, 1033, 15)”/> Results in : Thursay, August 24, 2011 09:00:00 PM   If your required date time format [...]

Read Full Post »

Introduction. In SharePoint 2010 you can use Google Maps without having to download extra webparts or third party tools. In this article I will explain how you can insert “Google Maps” maps in your SharePoint 2011 site with only using standard out of the box SharePoint 2010 features. It’s a generic solution which can also [...]

Read Full Post »

Introduction Sometimes I prefer logging to a simple log file instead of using the Event Log, Tracing or the SharePoint Logs. The ability to turn on and off these logs without having to update a dll or web.config is a great advantage in SharePoint as well. I was a fan of Log4net project but the [...]

Read Full Post »

While programming in SharePoint, did you ever needed to work your way back to the parent website? Probably the easiest, but not the recommended, way to do this is: The problem with this approach is that you are not disposing your SPWeb and SPSite objects. You should correctly dispose you SharePoint objects to avoid memory [...]

Read Full Post »

The new Ribbon functionality in SharePoint 2010 can cause some frustration when creating custom master pages. The trick is to develop a master page with the ribbon always on top of your page without losing functionality and keep the content scrolling working correctly. Sometimes the scroll bars seems to grow outside the browser window leaving [...]

Read Full Post »

Older Posts »

Follow

Get every new post delivered to your Inbox.