Add to My Yahoo! | Google Reader or Homepage | Add to Windows Live | Add to Windows Live Alerts

Wictor Wilén

Microsoft Certified Master (MCM) - SharePoint 2010 | Microsoft Most Valuable Professional (MVP) - SharePoint Server MVP | Author

5 files you should know in the SharePoint 12-hive

Posted at 2009-04-09 01:46 by Wictor Wilén in SharePoint with 10 comments.

The SharePoint 12-hive contains by default a number of interesting files that every developer should be aware of. The more you know the better you understand the inside of SharePoint and it allows you to create more efficient and better solutions.

Here are my top five favorite files:

ctypeswss.xml (in TEMPLATE\FEATURES\ctypes)

This is the feature elements file for all the default WSS Content Types. When creating new content types, most often I find it useful to derive them from existing content types. For example if I need to create a content type that derives from the standard content type Task, i can easily get the content type ID, which is used when creating new content type IDs, and what Site Columns that content type has.

fieldwss.xml (in TEMPLATE\FEATURES\fields)

Second favorite is the elements file for the WSS Site Columns feature. In this file all definitions for the default WSS Site Columns is found. Together with ctypeswss.xml this is really handy when creating custom content types. By finding out the ID’s of the Site Columns you can easily re-use the site columns when creating content types.

Custom List schema.xml in (TEMPLATE\FEATURES\CustomList\CustList)

Whenever I need to create a list definition and need to create a schema.xml I use the schema.xml for the Custom List feature and copy it to my definition.

STS onet.xml in (TEMPLATE\SiteTemplates\STS\Xml)

This is the file to check out when creating Site Definitions. The onet.xml file contains all Site Definitions (althought the folder is called SiteTemplates), which includes navigation, lists etc. Most often I copy this file (and all other files in the STS folder) and remove almost everything except the the blank site def.

DOCICON.xml (in TEMPLATE\XML)

Perhaps not that interesting that the four above, but on nearly all installations you update this file with the PDF icon (at least). What this file does it that it allows you to map an extension (or ProgID) to an icon and optionally specify an editor.

What’s your favorite ones?

Comments and trackbacks

#  Core.css... by Andy Burns
Screenshot from websnpr ...ugly, fat, but used lots in branding! That and STS onet.xml. And some sort of master page
#  Re: Core.css by Wictor
Screenshot from websnpr Yea, Core.css is fun :-) Fortunatley I personally don't spend to much on branding SharePoint...
#  Conotrol templates by Bjørn Furuknap
Screenshot from websnpr I would definitely add the defaulttemplates.ascx in the CONTROLTEMPLATES folder, used for controlling the visual rendering of a great deal of SharePoint content.
#  Re: Control template by Wictor
Screenshot from websnpr A really good one Bjørn. If you want to know how stuff is rendered in SharePoint, this is the one to check out!
#  SharePoint Daily for April 9, 2009 by Trackback
Screenshot from websnpr Top News Stories Bring On The Open Source Alternatives To SharePoint (Redmond Developer News) It seems
#  Custom FieldTypes by Johan L
Screenshot from websnpr For making custom fieldtypes you always have to look into this one: 12\TEMPLATE\XML\FLDTYPES.xml
#  Re: Custom FieldTypes by Wictor
Screenshot from websnpr Yup, that one was just outside my list. I did switch that one for docicon.xml, which I thought should be on the list due to the fact that I've repeatedly used it at customers installations. I've received such good responses that there should be a revisited post somewhere in the future.
#  CustList is unnecessarily verbose by Oskar Austegard
Screenshot from websnpr CustList is MUCH more complex than it needs to be - start with this schema instead: http://mo.notono.us/2009/02/moss-dreaded-schemaxml.html In fact - let me try to paste it here in its entirety - hope your comments escape angle brackets... 100 Settings used in the application.
#  Cust List... by Oskar Austegard
Screenshot from websnpr Ok, angle brackets NOT escaped - ok, view the source (look for ">?xml version") or my post)
#  Re Cust List by Wictor
Screenshot from websnpr Thanks Oskar, really interesting post - a keeper!
Make a comment on this post:
Subject:  

Your name:  
Your Url:  
Note: submissions may have to be approved before being visible, so don't submit your comment multiple times.