Benutzerdefinierte Templates in SharePoint migrieren (Design Vorlagen)

Man findet es fast in jeder SharePoint Umgebung. Benutzerdefinierte Design Vorlagen. Das ist nicht ungewöhnlich, da man in SharePoint auch das CI seines Unternehmen einbinden möchte oder man gewisse Funktionalitäten hinzufügen oder sogar entfernen möchte. Spätestens bei einer Migration z.B. von SharePoint 2010 auf 2013, wird das Thema wieder aktuell. Wenn ich nämlich benutzerdefinierte Design Vorlagen sog. Templates einsetze, müssen diese auch im Ziel vorhanden sein, da sonst die Migration nicht durchgeführt werden kann. Templates sind (siehe auch Template Referenz am Ende des Artikels) z.B.:

  • Teamsite
  • Blank Site
  • Document Workspace

Es ergeben sich daher zwei Fragen:

  • Verwende ich benutzerdefinierte Templates und wo verwende ich sie?
  • Benötige ich diese Templates weiterhin?

Templates identifizieren

Als Erstes müssen wir herausfinden, ob denn überhaupt benutzerdefinierte Templates verwendet werden. Ob welche in SharePoint installiert sind, kann man entweder über die installierten Solutions feststellen, per Power Shell oder direkt im Dateisystem auf dem WFE (Web-Frontend).

Power Shell

Mit folgendem Befehl kann man sich die installieren Templates anzeigen lassen. Das Feld “Custom” hilft hier bereits von Standard Templates zu differenzieren: Get-SPWebTemplate | ft -property Name, Title, ID, Lcid, Custom image Der Screenshot zeigt das am Beispiel SharePoint 2013.

Dateisystem

C:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15TEMPLATE1033XML (1033 für Englisch / 1031 für Deutsch // Templates sind sprachabhängig und existieren pro Sprache) Für jedes Template gibt es eine eigene XML-Datei. Benutzerdefinierte Templates können also nur anhand vom Dateinamen erkannt werden. Im Zweifelsfall muss man sich alle ansehen. Hier ein Screenshot von den Out-Of-The-Box Templates + “custom_Dennis.xml” als angepasstes Template: image Nach dem Öffnen des Templates erkennt man i.d.R. die benutzerdefinierte Vorlage anhand vom Namen und der ID: image Dabei sind die eigentlichen Template-Dateien unter C:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15TEMPLATESiteTemplates abgelegt.

Wo verwende ich die Templates

Wenn sich also herausgestellt hat, dass Sie benutzerdefinierte Templates verwenden. Müssen Sie feststellen ob und wo diese verwendet werden. Dies kann per Power Shell für SharePoint erfolgen: get-spweb <URL> | ft -property WebTemplate, WebTemplateId –auto Z.B.: get-spweb http://lab-sp2013 | ft -property WebTemplate, WebTemplateId –auto image Das hier verwendete Template ist also STS#1. Im nächsten Kapitel mehr was dahinter steckt.

Benötige ich die Templates weiterhin?

Falls das Template weiterhin verwendet werden soll, mit allen Anpassungen, muss dieses entsprechend entwickelt werden und im Zielsystem installiert werden.
Alternativ gibt es noch die Möglichkeit bei der Migration das Template zumindest in ein Standard Template umzubauen, so dass aus einem Benutzerdefinierten eine Teamsite wird. Das geht indem man sich letztendlich ein neues Template baut.
Komfortabler geht es natürlich mit Template Mappings mithilfe von AvePoint Docave Migration für SharePoint. Ausschlaggebend für die Migration ist dass es das Template im Ziel mit der gleichen ID gibt! Hatte ich ein benutzerdefiniertes Template mit der ID 10000, muss im Ziel eines mit der ID 10000 vorhanden sein.

Template Referenz

Diese können wie folgt abgerufen werden (hier SharePoint 2013): Get-SPWebTemplate | ft -property Name, Title, ID

ID Title Name Description
0 Global template GLOBAL#0 This template is used for initializing a new site.
1 Team Site STS#0 A place to work together with a group of people.
1 Blank Site STS#1 A blank site for you to customize based on your requirements.
1 Document Workspace STS#2 A site for colleagues to work together on a document. It provides a document library for storing the primary document and supporting files, a tasks list for assigning to-do items, and a links list for resources related to the document.
2 Basic Meeting Workspace MPS#0 A site to plan, organize, and capture the results of a meeting. It provides lists for managing the agenda, meeting attendees, and documents.
2 Blank Meeting Workspace MPS#1 A blank meeting site for you to customize based on your requirements.
2 Decision Meeting Workspace MPS#2 A site for meetings that track status or make decisions. It provides lists for creating tasks, storing documents, and recording decisions.
2 Social Meeting Workspace MPS#3 A site to plan social occasions. It provides lists for tracking attendees, providing directions, and storing pictures of the event.
2 Multipage Meeting Workspace MPS#4 A site to plan, organize, and capture the results of a meeting. It provides lists for managing the agenda and meeting attendees in addition to two blank pages for you to customize based on your requirements.
3 Central Admin Site CENTRALADMIN#0 A site for central administration. It provides Web pages and links for application and operations management.
4 Wiki Site WIKI#0 A site for a community to brainstorm and share ideas. It provides Web pages that can be quickly edited to record information and then linked together through keywords
9 Blog BLOG#0 A site for a person or team to post ideas, observations, and expertise that site visitors can comment on.
15 Group Work Site SGS#0 This template provides a groupware solution that enables teams to create, organize, and share information quickly and easily. It includes Group Calendar, Circulation, Phone-Call Memo, the Document Library and the other basic lists.
16 Tenant Admin Site TENANTADMIN#0 A site for tenant administration. It provides Web pages and links for self-serve administration.
17 App Template APP#0 A base template for app development.  It provides the minimal set of features needed for an app.
18 App Catalog Site APPCATALOG#0 A site for sharing apps for SharePoint and Office
2764 Access Services Site ACCSRV#0 Microsoft Access Server
2757 Access Services Site Internal ACCSVC#0 Microsoft Access Server Internal
2757 Access Services Site ACCSVC#1 Microsoft Access Server
7 Document Center BDR#0 A site to centrally manage documents in your enterprise.
95 Developer Site DEV#0 A site for developers to build, test and publish apps for Office
10000 Academic Library DOCMARKETPLACESITE#0 The Academic Library template provides a rich view and consumption experience for published content and management. Authors populate metadata and apply rules at the time of publishing, such as description, licensing, and optional rights management (IRM). Visitors of the site can search or browse published titles and add authorized selections to their collection to consume, subject to the rights and rules applied by the author. The site provides an IRM-capable document library, a publishing mechanism for authors to publish documents, detailed views for each document, a check-out mechanism, and related search capabilities.
3300 eDiscovery Center EDISC#0 A site to manage the preservation, search, and export of content for legal matters and investigations.
3300 eDiscovery Case EDISC#1 This template creates an eDiscovery case. Users create locations where they can preserve or export data.
14483 (obsolete) Records Center OFFILE#0 (obsolete) This template creates a site designed for records management. Records managers can configure the routing table to direct incoming files to specific locations. The site also lets you manage whether records can be deleted or modified after they are added to the repository.
14483 Records Center OFFILE#1 This template creates a site designed for records management. Records managers can configure the routing table to direct incoming files to specific locations. The site also lets you manage whether records can be deleted or modified after they are added to the repository.
40 Shared Services Administration Site OSRV#0 This template creates a site for administering shared services
3100 PerformancePoint PPSMASite#0 A site for presenting PerformancePoint dashboards and scorecards. The site also includes links to PerformancePoint Dashboard Designer and storage for dashboard content such as analytic charts, reports, KPIs, and strategy maps.
3200 Business Intelligence Center BICenterSite#0 A site for presenting Business Intelligence content in SharePoint.
20 SharePoint Portal Server Site SPS#0 This template is obsolete.
21 SharePoint Portal Server Personal Space SPSPERS#0 This web template defines a Personal Space for an individual participating on a SharePoint Portal.
21 Storage And Social SharePoint Portal Server Personal Space SPSPERS#2 This web template defines a minimal Personal Space with both Social and Storage features for an individual participating on a SharePoint Portal.
21 Storage Only SharePoint Portal Server Personal Space SPSPERS#3 This web template defines a minimal Personal Space with Storage features for an individual participating on a SharePoint Portal.
21 Social Only SharePoint Portal Server Personal Space SPSPERS#4 This web template defines a minimal Personal Space with Social features for an individual participating on a SharePoint Portal.
21 Empty SharePoint Portal Server Personal Space SPSPERS#5 This web template defines a empty Personal Space.
22 Personalization Site SPSMSITE#0 A site for delivering personalized views, data, and navigation from this site collection into My Site. It includes personalization specific Web Parts and navigation that is optimized for My Site sites.
30 Contents area Template SPSTOC#0 This template is obsolete.
31 Topic area template SPSTOPIC#0 This template is obsolete.
32 News Site SPSNEWS#0 This template is obsolete.
39 Publishing Site CMSPUBLISHING#0 A blank site for expanding your Web site and quickly publishing Web pages. Contributors can work on draft versions of pages and publish them to make them visible to readers. The site includes  document and image libraries for storing Web publishing assets.
53 Publishing Site BLANKINTERNET#0 This template creates a site for publishing Web pages on a schedule, with workflow features enabled.  By default, only Publishing subsites can be created under this site. A Document and Picture Library are included for storing Web publishing assets.
53 Press Releases Site BLANKINTERNET#1 This template creates the Press Releases subsite for an Internet-facing corporate presence website.
53 Publishing Site with Workflow BLANKINTERNET#2 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 with this template can be created under this site.
33 News Site SPSNHOME#0 A site for publishing news articles and links to news articles. It includes a sample news page and an archive for storing older news items.
34 Site Directory SPSSITES#0 A site for listing and categorizing important sites in your organization. It includes different views for categorized sites, top sites, and a site map.
36 Community area template SPSCOMMU#0 This template is obsolete.
38 Report Center SPSREPORTCENTER#0 A site for creating, managing, and delivering Web pages, dashboards, and key performance indicators that communicate metrics, goals, and business intelligence information.
47 Collaboration Portal SPSPORTAL#0 A starter site hierarchy for an intranet divisional portal. It includes a home page, a News site, a Site Directory, a Document Center, and a Search Center with Tabs. Typically, this site has nearly as many contributors as  readers and is used to host team sites.
50 Enterprise Search Center SRCHCEN#0 A site focused on delivering an enterprise-wide search experience. Includes a welcome page with a search box that connects users to four search results page experiences: one for general searches, one for people searches, one for conversation searches, and one for video searches. You can add and customize new results pages to focus on other types of search queries.
51 Profiles PROFILES#0 This template creates a profile site that includes page layout with zones
52 Publishing Portal BLANKINTERNETCONTAINER#0 A starter site hierarchy for an Internet-facing site or a large intranet portal. This site can be customized easily with distinctive branding. It includes a home page, a sample press releases subsite, a Search Center, and a login page. Typically, this site has many more readers than contributors, and it is used to publish Web pages with approval workflows.
54 My Site Host SPSMSITEHOST#0 A site used for hosting personal sites (My Sites) and the public People Profile page. This template needs to be provisioned only once per User Profile Service Application, please consult the documentation for details.
56 Enterprise Wiki ENTERWIKI#0 A site for publishing knowledge that you capture and want to share across the enterprise. It provides an easy content editing experience in a single location for co-authoring content, discussions, and project management.
6115 Project Site PROJECTSITE#0 A site for managing and collaborating on a project. This site template brings all status, communication, and artifacts relevant to the project into one place.
59 Product Catalog PRODUCTCATALOG#0 A site for managing product catalog data which can be published to  an internet-facing site through search. The product catalog can be configured to support product variants and multilingual product properties.  The site includes admin pages for managing faceted navigation for products.
62 Community Site COMMUNITY#0 A place where community members discuss topics of common interest. Members can browse and discover relevant content by exploring categories, sorting discussions by popularity or by viewing only posts that have a best reply. Members gain reputation points by participating in the community, such as starting discussions and replying to them, liking posts and specifying best replies.
63 Community Portal COMMUNITYPORTAL#0 A site for discovering communities.
90 Basic Search Center SRCHCENTERLITE#0 A site focused on delivering a basic search experience. Includes a welcome page with a search box that connects users to a search results page, and an advanced search page. This Search Center will not appear in navigation.
90 Basic Search Center SRCHCENTERLITE#1 The Search Center template creates pages dedicated to search. The main welcome page features a simple search box in the center of the page. The template includes a search results and an advanced search page. This Search Center will not appear in navigation.
61 Visio Process Repository visprus#0 A site for viewing, sharing, and storing Visio process diagrams. It includes a versioned document library and templates for Basic Flowcharts, Cross-functional Flowcharts, and BPMN diagrams.

 

Referenz

Autor: Dennis Hobmaier

Dennis Hobmaier ist Senior Consultant bei Solutions2Share. Er hat über 15 Jahre Erfahrung in IT-Enterprise Umgebung aller Größenordnungen und bedient Kunden aus den unterschiedlichsten Branchen. Als MCSE SharePoint hat er tiefgreifende Kenntnisse in den Bereichen Microsoft Active Directory, Windows, SharePoint und Office 365. Gerne teilt er seine Projekterfahrung mit Ihnen.

Kommentar verfassen