SharePoint

Rename Template "Custom" tab in SharePoint 2007

In SharePoint 2007, any custom templates added through the stsadm command stdadm -o addtemplate appear under the "Custom" tab.

This may not appear sufficiently corporate for some people. One easy fix is to simply modify the locale file at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Resources\core.en-US.resx. Just find

  <!--TemplatePickerControl -->
  <data name="TemplatePickerControl_Custom">
    <value>Custom</value>
  </data>

and modify <value> to anything you li

The "internal abstract" trap

To avoid other bashing their head against a brick wall for hours, I offer the following sage advice:

    If you are trying to extend an abstract class from a library you don't control (eg. SharePoint 2007), check for internal abstract method signatures first.

Specifically, I was trying to create a custom version of the DataViewWebPart. This is a sealed class, so okay, C# won't let you try and extend that.

What about its parent, BaseXsltDataWebPart? That's marked as public abstract, so you can happily use that as a base.

SharePoint Web Services query

This VBScript code allows you to query and post just about any information to SharePoint using web services. There are two steps involved:

  1. Check the signature of the Web Service you want to invoke. For example, http://sharepoint/_vti_bin/Lists.asmx will give a list of all operations you can perform on SharePoint lists.
  2. Create a VBScript file with the following lines:

    Option Explicit
    
    Dim xmlDoc, SOAPClient
    
    ' Get the root element object
    Set SOAPClient = createobject("MSSOAP.SOAPClient")  
Syndicate content