Blue Theme Orange Theme Green Theme Red Theme
 
Team Foundation Server Hosting
Home | Forums | Videos | Advertise | Certifications | Downloads | Blogs | Interviews | Jobs | Beginners | Training
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
Nevron Chart
Search :       Advanced Search »
Home » SharePoint » Creating Custom Templates in SharePoint

Creating Custom Templates in SharePoint

This article is all about creating custom templates in SharePoint.

Page Views : 45102
Downloads : 0
Rating :
 Rate it
Level : Intermediate
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
Discover the top 5 tips for understanding .NET Interop
Become a Sponsor
Team Foundation Server Hosting
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

Introduction:

When you install Share point then you will be getting 11 predefined templates like

  1. Windows SharePoint Services Site
  2. SharePoint Portal Server Site
  3. SharePoint Portal Server Personal Space
  4. SharePoint Portal Server My Site
  5. Contents area Template
  6. Topic area template
  7. News area template
  8. News Home area template
  9. Site Directory area template
  10. SharePoint Portal Server BucketWeb Template
  11. Community area template

These templates can be located at C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033.

Advantages of having custom templates.

  1. You can control  the Look and feel of the web site page.
  2. You can have your predefined custom web parts.
  3. Not required to drag and drop web parts.
  4. Same look and feel across the web site page.

Steps for Creating Custom Templates in Share Point.

  1. Copy SPS folder from C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033 and Rename it as SPSCustom folder.

  2. Open default.aspx from C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033\SPSCustom. Create you own structure here like

    <table border=0 cellpadding=0 cellspacing=0>
          
    <tr>
               
    <td width=170 valign=top>
                     
    <WebPartPages:WebPartZone runat="server" AllowPersonalization="false" ID="TopZone"
                        
    Title="TopZone" Orientation="Vertical"></WebPartPages:WebPartZone>
                
    </td>
          
    </tr>
    </table>

  3. Open onet.xml from C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033\SPSCustom\XML. Add the following section under
    <Components>
      <Modules>
        <Module>
          <File>

    <AllUsersWebPart WebPartZoneID="TopZone" WebPartOrder="0">
            <![
    CDATA[<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">
                 <
    Assembly>AssemblyName, Version=1.0.0.0,Culture=Neutral, 
                  PublicKeyToken=1111111111111111
    </Assembly>
                  <
    TypeName> NameSpaceName.AssemblyName</TypeName>
                  <
    Title>Web Part Title</Title>
                  <
    Description>My Own Custom Web Part</Description>
                  <
    PartOrder>0</PartOrder>
                  <
    FrameType>None</FrameType>
                  <
    AllowMinimize>true</AllowMinimize>
                  <
    AllowRemove>true</AllowRemove>
                  <
    IsVisible>true</IsVisible>
                  <
    AllowOverrideGlobalXML xmlns="NameSpaceName">false</AllowOverrideGlobalXML>
             </
    WebPart>]]>
    </AllUsersWebPart>

    Replace NameSpaceName with your NameSpace name
    Replace AssemblyName with your Assembly Name

  4. Open WEBTEMPSPS.XML from C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033\XML. Add the below section under

    <Templates>
           <Template Name="SPSCustom" ID="1036">
           <Configuration ID="0" Title="My Custom Template" Type="0" Hidden="TRUE"
           ImageUrl
    ="../images/spshome.gif" Description="Area Template</Configuration>
    </Template>

    Name = should be your custom folder name
    ID = should be any four digit number which should be unique
    Title= can be your own title which will be displayed in your web site list box.

  5. Do iisreset.

  6. Navigation steps to see the below screen

    • You need to be Administrator on the Portal Server
    • Open Home page of your portal
    • Click on Change Settings Sub Area link available in the left side of the screen.
    • Click on Page tab.

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
Srikanth Kancharla
Srikanth Kancharla is a Module Lead in Wipro Technologies, Hyderabad.
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Discover the Top 5 .NET Memory Management Fundamentals
To write the best .NET code, you need to know exactly how the .NET framework really manages memory. Ricky Leeks presents the Top 5 fundamental facts of .NET memory management. Learn more.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
Discover the top 5 tips for understanding .NET Interop
Become a Sponsor
 Comments
Customizing site template by Sam On October 2, 2007
Hi, I have requirement where I need to allow the customers to create sites using existing customized template. I have modified a default.aspx file and also default.master file of that aspx file. It contains some site banners and 2-3 announcements in that, do I need to change anything in the xml file to use this? Any help would be appreciated Thank you
Reply | Email | Modify 
sharepoint themes by sri On December 12, 2007
hi , pls clear my doubt.is it possible to change themes in sharepoint through C# code.if possible give code.pls its urgent.
Reply | Email | Modify 
Re: sharepoint themes by Senthil On March 20, 2008
Make a theme which is Global And try to integrate it
Reply | Email | Modify 
HI by Senthil On March 20, 2008
Can Any one Explain Me the Sharepoint Structure. Acually how it is coded and the Layout ie the code behind the screen of sharepoint for the Master Page
Reply | Email | Modify 
custom document workspace template by annie On May 20, 2009
hi,

I have created a custom document workspace template. I would like to use that custom template to create additional subsites via web parts on a administrators web page. So basically it would be enable with a click of a button on a web part page. Is it possible to do it?

Thanks and appreciate your help and input
A.K
Reply | Email | Modify 
"TEMPLATE\1033" not found under "60" by abinjaik On June 8, 2009
Hello friend,
I was trying to create a custom template for a demo,while searching i found your articles and it is very useful. But when i took the server to locate the "C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033" it didnt found the "TEMPLATE\1033" under "60" . i can see only "BIN" folder under "60". What i need to do for getting the mentioned location. Kindly help me ... Thanks
Reply | Email | Modify 
Great Post by andy On October 28, 2009
Thanks for this awesome tutorial on creating custom SharePoint templates! You should consider joining the SharePoint conversation at http://www.facebook.com/office

Cheers,
Andy
MSFT Office Outreach Team
Reply | Email | Modify 
Nevron Chart
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.