Wednesday, June 16, 2010

Removing / hiding the "workspace" option from Calendar

Currently, I have disabled the "Workspace" check box from all Calendar events within SharePoint. I did this by doing the following:

  • On the server, navigate to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\EventsList\Events\
  • Create a backup of schema.xml (I backed it up as schema.xml.backup)
  • Open schema.xml and search for the first of two sections: Name="WorkspaceLink". Within the section that looks like similar to this:
Field ID="{881eac4a-55a5-48b6-a28e-8329d7486120}" Type="URL" Name="Workspace" DisplayName="$Resources:core,WorkspaceUrl;" Hidden="TRUE" Sealed="TRUE" .............

  • Add ShowInNewForm="FALSE" ShowInEditForm="FALSE" after Hidden="TRUE"
  • Find the next section by searching for Name="Workspace. Within the section that looks similar to this:
Field ID="{881eac4a-55a5-48b6-a28e-8329d7486120}" Type="URL" Name="Workspace" DisplayName="$Resources:core,WorkspaceUrl;" Hidden="TRUE" Sealed="TRUE" .............

  • Add ShowInNewForm="FALSE" ShowInEditForm="FALSE"after Hidden="TRUE"
  • Save the file.
  • Perform an IIS restart by clicking the Start menu, click Run, type CMD. This will bring up the command-line window. Type iisreset and press Enter

No comments:

Post a Comment