ConfigLabs

July 12, 2007

SharePoint 12 Hive – XML directory – Unleashed

Filed under: SharePoint 2007, WSS 3.0 — Jag @ 5:11 am

It always important for a SharePoint Developer to know the whats underhood. We are familar with 12 hive direcrtory, I suppose. (Will this be changed to 14 hive in the next version!!) I call it the underhood directory for SharePoint 2007. For those of you who have no clue where it is; it is located in the following location on you WFE server.
%>Program Files\Common Files\Microsoft Shared\web server extensions\12
In this post, I wish to explain each of the XML files found in the Templates\XML directory in 12 hive. Reason being I use this XML files once in a while to tweak my SharePoint installation. I will explain this in detail as I unleash each of the XML files.

alerttemplates.xml 
Used to change the look and feel of Alert Notification emails for each list, web or custom types in your SharePoint Environment. You can set custom branding based on your to your email alerts.

BASE.XML
BASE.XML defines base types for lists that apply globally to all the SharePoint Web sites.

DOCICON.XML
This file is used for mapping file types to particular icons. To add the new icon to the file type follow below steps.

  1. To add a .pdf (Adobe PDF) file name extension, add the following line to the ByExtension section in this file—<Mapping Key="pdf" Value="pdf16.gif"/>.
  2. Add the file pdf16.gif (use Google Image Search to get this image) to the Program Files\Common Files\Microsoft Shared\web server extensions\12\Template\Images.

FLDTYPES.XML
Used to define how various SharePoint field types are rendered. For further info check out here.

fldtypes_hold.xml
Used to define the hold status pertaining to entities realted to Records Management Policy. Note: This file is meant for internal use and it is recommended not alter the contents.

fldtypes_publishing.xml
Used to define the publishing field types like HTML, Links, Summary Links etc. In case of creating a bew custom publishing field type, say Address (with validation) then a new entry related to this filed type has to be added to this file.All other xml files with prefix fldtypes are cutom built field types. Yet another notable field type is Business Data field. This field type is defined in fldtypes_spsbizdata.xml.

htmltransinfo.xml
Used to define the how to open various documents stored in the sharepoint server. The mapping entry for a particular document in this XML file will tell SharePoint server to open the document in a particular client application. If the document conversion mapping is not found in this file, SharePoint will prompt the user to download the document.

SharePoint is flexible enough for you to create custom properties by creating custom XML files in this directory.

7 Comments »

  1. [...] SharePoint 12 Hive – XML directory - Unleashed [...]

    Pingback by SharePoint, SharePoint and stuff : SharePoint Kaffeetasse 15 — July 12, 2007 @ 3:36 pm

  2. Pretty awesome article. Thanks! – CowDir

    Comment by CowDir — November 1, 2007 @ 2:43 am

  3. Hello all, nice article, its extremely well written and easy to understand. thanks for sharing it with us.
    Best Regards

    Comment by Best Web Directory — February 14, 2008 @ 7:36 pm

  4. Hi Jag,

    It’s a nice article. I have a problem related to DOCICON.XML. If I need to add .pdf extenstion to DOCICON.XML file across all WFE servers in a farm, how I can do it. I searched all over net and I didnt get any proper answer. Is there any attribute or something which allows to modify the DOCICON.XML file across all WFE’s ?

    It would be really great if you can throw some light on this issue.

    -Yesh

    Comment by yeshwanth — October 15, 2008 @ 10:03 pm

  5. Learn Sharepoint…

    John Anderson is new to both Bamboo Solutions and to SharePoint, but he isn\’t new to online community. Having recently departed AOL, where he was a Programming Manager for that company\’s social media team, John is thrilled to have joined the Bamb…

    Trackback by Learn Sharepoint — November 5, 2008 @ 6:47 am

  6. [...] SharePoint 12 Hive – XML directory - Unleashed [...]

    Pingback by SPPD074 SharePointPodcast - SharePointPodcast - SharePointCommunity — June 9, 2009 @ 9:34 pm

  7. Hi Jag,
    nice Article,
    do we have control on display of green ‘NewFlag’ next to the Title in a document Library to make a global change such that all the Items in Lists and Libraries in the sharepoint app will have NewFlag based up on the New “Modified Date” instead of default New “Created Date”. any clues in direction of solution is much appriciated.. thank you.

    Comment by Naresh — November 5, 2009 @ 11:34 am


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.