|
|
|
|
|
|
|
Page Views :
|
23192
|
|
Downloads :
|
0
|
|
Rating :
|
Rate it
|
|
Level :
|
Intermediate
|
|
Introduction:
When you install Share point then you will be getting 11 predefined templates like
- Windows SharePoint Services Site
- SharePoint Portal Server Site
- SharePoint Portal Server Personal Space
- SharePoint Portal Server My Site
- Contents area Template
- Topic area template
- News area template
- News Home area template
- Site Directory area template
- SharePoint Portal Server BucketWeb Template
- 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.
- You can control the Look and feel of the web site page.
- You can have your predefined custom web parts.
- Not required to drag and drop web parts.
- Same look and feel across the web site page.
Steps for Creating Custom Templates in Share Point.
- Copy SPS folder from C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033 and Rename it as SPSCustom folder.
- 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>
-
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
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.
Do iisreset.
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
|
|
|
|
|
|
|
Contents added by
anmol rehan
on
Jul 03, 2011
|
|
|
|
Nice post. You can find similar post and source code here
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
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!
|
|
|
|
|
|
|
|
|
|
|
|
|