Skip to main content

About SharePoint Site Definitions



A SharePoint site definition consists of CAML elements that describe the different parts of the site and how they relate to each other. The topmost element is the 'template' element which is declared in the special file called WEBTEMP, which contains further template configuration elements. Each of the template configuration elements defined in WEBTEMP file references associated site definition configuration elements in the ONET.xml file.
When talking about site definitions it is important to understand the difference between Site templates and Site definitions. When users create a new SharePoint site or site collection through user interface, they are actually using one of the available site templates as defined in the WEBTEMP.[name].xml file, where [name] is the visible template name. The site definiton configuration elements are defined in the configuration elements in the ONET.xml.

Popular posts from this blog

Custom Error Page in SharePoint 2010

You can easily dispaly your own HTTP 404 Page Not found Error page for each of your SharePoint Web Application. A custom Error page can be associated with each Web Application in SharePoint and you can redirect the 404 error page to your own specified error page. SharePoint has it's error Pages stored at this location: 14\TEMPLATE\LAYOUTS\1033\ERRORV4.html 14\TEMPLATE\LAYOUTS\1033\sps404.html The one we need is the sps404.html. If you open this page you will see: STSNavigate("/_layouts/spsredirect.aspx?oldurl="+ requestedurl); Here spsredirect.aspx is the Error page currently used by sharepoint. So what we need to do is, first make a copy of the sps404.html, rename it - in my case mscom404.html and save it at the same location (14\TEMPLATE\LAYOUTS\1033).Now in the STSNavigate replace spsredirect.aspx with your own aspx page. The url in STSNavigate should be a properly working url, then only the redirection will work. as you can see in the code above, i'm placing my e...

Tracing service in Windows SharePoint Services

recently i got to know about the SharePoint's Tracing service. Tracing Service is used by Windows SharePoint Services 3.0 to manage trace output. Tracing is usually needed to debug things in SharePoint....if you are not actively and regularly debugging things, you may not need this and can stop the service, as the logs occupy a significant size on the system (.....in GB's). Read more ..

Ratings Feature in SP2010

There is a new feature in SharePoint 2010 called "Ratings" which means you can rate any item (Audio, video image..etc.) in a library. this feature comes activated in "Team Site" but for a Publishing site, you need to manully enable this feature. The feature does not show up in the list, it is a hidden feature. You need to enable it from Power Shell (SharePoint 4.0 Mangement Console). Here is how you turn it on for a publishing site: enable - spfeatureid - "915c240e-a6cc-49b8-8b2c-0bff8b553ed3" - url " ". Then in order to rate an item in the library, go to the library settings and click Ratings Settings. in "Allow items in this list to be rated" select yes .