Related articles:
The basics of SharePoint Search and Display Templates. Ever since SharePoint 2013, I’ve been throwing myself into Search based solutions. What does that mean? Well, instead of building things directly the way I want them in a site, I’ll let the authoring of content happen without any hassle in simple Lists and Libraries. Publishing Site: This template offers a starter site hierarchy (grouping of SharePoint sites) for an Internet site or a large intranet portal. You can use distinctive branding to customize this site. It includes a home page, a sample press-releases site, a Search Center, and a logon page. This template is available only at the site-collection. Save, download, and upload a SharePoint site as a template.; 6 minutes to read Contributors. In this article. Learn how to design and build robust applications by using SharePoint site templates. Save, download, and upload a SharePoint site as a template.; 6 minutes to read Contributors. In this article. Learn how to design and build robust applications by using SharePoint site templates.
Load more
When you need to develop a SharePoint Online site to solve a problem, be sure that you start with a solid understanding of the available site templates. It’s often much easier to start with a site template that almost does what you want and then develop it from this starting point than to develop everything from scratch.
Before you start building custom applications for SharePoint, having a solid working knowledge of its various components is a good idea. The best way to get to know SharePoint is to start with a blank site and develop it from scratch so you understand what the templates are doing. Then you can more easily start with a template as a baseline and develop your site from there.
Creating a new site is as simple as clicking Site Actions→New Site from the parent site and then clicking through the templates to find the site you want to create. A parent site is simply a site that holds another site.
Site Template | Description |
---|---|
Assets Web Database | Create a database to keep track of your organization’s information assets, including the details and owner(s) of each asset. |
Basic Meeting Workspace | A site on which you can plan, organize, and capture the results of a meeting. It provides lists for managing the agenda, meeting attendees, and documents. |
Basic Search Center | This site provides SharePoint search functionality, including pages for search results and advanced searches. |
Blank Meeting Workspace | You can use this blank meeting site to customize to your meeting’s requirements. The difference from a Blank Site is that a Blank Meeting Workspace has the components available that you need to build out a site geared toward meetings. |
Blank Site | A blank site has no built-in features; customize it to match your requirements. What you are actually doing is creating a container for SharePoint stuff, a site, without actually putting any of the SharePoint stuff in there at the time of creation. |
Blog | This site works like an Internet blog; a person or team can post ideas, observations, and expertise that site visitors can comment on. |
Charitable Contributions Web Database | By using this site, you can create a database that keeps track of information about fundraising campaigns — including donations, contributors, campaign-related events, and scheduled tasks. |
Contacts Web Database | By using this site, you can create a database to manage contact information from customers, partners, and other people who work with your team. |
Decision Meeting Workspace | You can use this site at meetings to track the status of projects or make decisions. The site includes lists you can use to create tasks, store documents, and record decisions. |
Document Center | You can manage documents centrally for your entire enterprise from this site. |
Document Workspace | Colleagues can use that famous SharePoint collaborative capability to work together on a document. The site provides a document library for storing the primary document and supporting files, a list for to-do tasks, and a list that can hold links to resources related to the document. |
Enterprise Search Center | This site provides the SharePoint search capability. The Welcome Page includes a search box that has two tabs: one for general searches and another for searches for information about people. You can add tabs, delete them, or customize them with different search scopes or specified result types. |
Enterprise Wiki | You can use this site for publishing knowledge that you capture and want to share across the enterprise. Use this site to edit, coauthor, and discuss content, as well as to manage projects. |
Express Team Site | This site is for teams to quickly create, organize, and share information. It provides a document library and a list for managing announcements. |
Group Work Site | This template provides a site that teams can use to create, organize, and share information. It includes the Group Calendar, Circulation, Phone-Call Memo, the document library, and the other basic lists. |
Issues Web Database | Create an issues database to manage a set of issues or problems. You can assign, prioritize, and follow the progress of issues from start to finish. |
Multipage Meeting Workspace | You can use this site to plan a meeting and make note of the meeting’s decisions and other results. The site provides lists for managing the agenda and meeting attendees, as well as two blank pages you can customize to your requirements. |
Personalization Site | You can use this site to deliver personalized views, data, and navigation from this site collection to My Site. It includes Web Parts that are specific to personalization and navigation that is optimized for My Site sites. This template is available only at the site level. |
Projects Web Database | You can create a project-tracking database to track multiple projects and assign tasks to different people. |
Publishing Site | This template offers a starter site hierarchy (grouping of SharePoint sites) for an Internet site or a large intranet portal. You can use distinctive branding to customize this site. It includes a home page, a sample press-releases site, a Search Center, and a logon page. This template is available only at the site-collection level. A site collection is a special SharePoint site that allows you to separate key aspects of the sites contained within the site collection. |
Publishing Site with Workflow | A site for publishing web pages on a schedule by using approval workflows. It includes document and image libraries for storing web-publishing assets. By default, only sites that have this template can be created under this site. |
Social Meeting Workspace | A site on which you can plan social occasions and use lists to track attendees, provide directions, and store pictures of the event. |
Team Site | A site on which a team can organize, generate, and share information. It provides a document library as well as lists for managing announcements, calendar items, tasks, and discussions. |
Visio Process Repository | A collaborative site on which teams can view, share, and store Visio process diagrams. It provides a document library (with version control) for storing process diagrams as well as lists for managing announcements, tasks, and review discussions. |
The ECM.DocumentLibraries sample shows you how to use a provider-hosted add-in to create a list or document library, assign a content type to it, and remove the default content type.
Use this solution if you want to:
- Create a list or document library and apply a default content type.
- Assert greater control over the addition, maintenance, or implementation of localized versions of your custom fields.
- Remove the default content type on a list or library.
- Apply library configuration settings when you create a list or library.
Before you begin
To get started, download the ECM.DocumentLibraries sample add-in from the Office 365 Developer Patterns and Practices project on GitHub.
Note
The code in this article is provided as-is, without warranty of any kind, either express or implied, including any implied warranties of fitness for a particular purpose, merchantability, or non-infringement.
Sharepoint Sample Business
Users accessing the ECM.DocumentLibraries sample add-in must have permissions to manage lists. The DoesUserHavePermission method in Default.aspx.cs checks the user's permissions to ensure that they can manage lists. If the user does not have permissions to manage lists, the add-in presents an error message to the user.
Using the ECM.DocumentLibraries sample add-in
When you start this add-in, the start page displays as shown the following figure. The ECM.DocumentLibraries start page looks like the page to add a new document library when you select Site Contents > Add an app > Document Library > Advanced Options, with one difference. When you start the add-in, the Document Template list displays a custom document library template, IT Document, and Contoso Document. When the user chooses Create, the selected custom content type is assigned to the new document library.
Start page of the ECM.DocumentLibraries sample add-in
When users choose Create, the CreateLibrary_Click method in Default.aspx.cs checks the selected default template and makes calls to either the CreateITDocumentLibrary or CreateContosoDocumentLibrary method in ContentTypeManager.cs, as shown in the following code.
The CreateContosoDocumentLibrary method then performs the following tasks, as shown in the next code example:
- Creates custom fields in the Managed Metadata Service.
- Creates a content type.
- Associates the custom fields with the content types.
- Creates the document library with the content type.
CreateContosoDocumentLibrary calls the CreateTaxonomyField method, which is part of the OfficeDevPnP.Core. CreateTaxonomyField creates a field in the managed metadata service from the provider-hosted add-in.
Download Sharepoint Templates 2013
CreateContosoDocumentLibrary calls the CreateContentType method, which is part of OfficeDevPnP.Core. CreateContentType creates a new content type.
CreateContosoDocumentLibrary calls the AddFieldToContentTypeById method, which is part of OfficeDevPnP.Core. AddFieldToContentTypeById associates a field with a content type.
Sharepoint Sample Templates
CreateContosoDocumentLibrary calls the CreateLibrary method in ContentTypeManager.cs to create the document library. The CreateLibrary method assigns library settings such as the document library's description, document versioning, and associated content types.
CreateLibrary calls RemoveContentTypeByName in ListExtensions.cs, which is part of OfficeDevPnP.Core. RemoveContentTypeByName removes the default content type on the document library.
After you create the document library, go to the Library settings on your document library to review the name, description, document versioning setting, content type, and custom fields that the add-in assigned to your document library.
Library settings applied by the add-in