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

IDTitleNameDescription
0Global templateGLOBAL#0This template is used for initializing a new site.
1Team SiteSTS#0A place to work together with a group of people.
1Blank SiteSTS#1A blank site for you to customize based on your requirements.
1Document WorkspaceSTS#2A 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.
2Basic Meeting WorkspaceMPS#0A site to plan, organize, and capture the results of a meeting. It provides lists for managing the agenda, meeting attendees, and documents.
2Blank Meeting WorkspaceMPS#1A blank meeting site for you to customize based on your requirements.
2Decision Meeting WorkspaceMPS#2A site for meetings that track status or make decisions. It provides lists for creating tasks, storing documents, and recording decisions.
2Social Meeting WorkspaceMPS#3A site to plan social occasions. It provides lists for tracking attendees, providing directions, and storing pictures of the event.
2Multipage Meeting WorkspaceMPS#4A 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.
3Central Admin SiteCENTRALADMIN#0A site for central administration. It provides Web pages and links for application and operations management.
4Wiki SiteWIKI#0A 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
9BlogBLOG#0A site for a person or team to post ideas, observations, and expertise that site visitors can comment on.
15Group Work SiteSGS#0This 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.
16Tenant Admin SiteTENANTADMIN#0A site for tenant administration. It provides Web pages and links for self-serve administration.
17App TemplateAPP#0A base template for app development.  It provides the minimal set of features needed for an app.
18App Catalog SiteAPPCATALOG#0A site for sharing apps for SharePoint and Office
2764Access Services SiteACCSRV#0Microsoft Access Server
2757Access Services Site InternalACCSVC#0Microsoft Access Server Internal
2757Access Services SiteACCSVC#1Microsoft Access Server
7Document CenterBDR#0A site to centrally manage documents in your enterprise.
95Developer SiteDEV#0A site for developers to build, test and publish apps for Office
10000Academic LibraryDOCMARKETPLACESITE#0The 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.
3300eDiscovery CenterEDISC#0A site to manage the preservation, search, and export of content for legal matters and investigations.
3300eDiscovery CaseEDISC#1This template creates an eDiscovery case. Users create locations where they can preserve or export data.
14483(obsolete) Records CenterOFFILE#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.
14483Records CenterOFFILE#1This 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.
40Shared Services Administration SiteOSRV#0This template creates a site for administering shared services
3100PerformancePointPPSMASite#0A 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.
3200Business Intelligence CenterBICenterSite#0A site for presenting Business Intelligence content in SharePoint.
20SharePoint Portal Server SiteSPS#0This template is obsolete.
21SharePoint Portal Server Personal SpaceSPSPERS#0This web template defines a Personal Space for an individual participating on a SharePoint Portal.
21Storage And Social SharePoint Portal Server Personal SpaceSPSPERS#2This web template defines a minimal Personal Space with both Social and Storage features for an individual participating on a SharePoint Portal.
21Storage Only SharePoint Portal Server Personal SpaceSPSPERS#3This web template defines a minimal Personal Space with Storage features for an individual participating on a SharePoint Portal.
21Social Only SharePoint Portal Server Personal SpaceSPSPERS#4This web template defines a minimal Personal Space with Social features for an individual participating on a SharePoint Portal.
21Empty SharePoint Portal Server Personal SpaceSPSPERS#5This web template defines a empty Personal Space.
22Personalization SiteSPSMSITE#0A 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.
30Contents area TemplateSPSTOC#0This template is obsolete.
31Topic area templateSPSTOPIC#0This template is obsolete.
32News SiteSPSNEWS#0This template is obsolete.
39Publishing SiteCMSPUBLISHING#0A 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.
53Publishing SiteBLANKINTERNET#0This 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.
53Press Releases SiteBLANKINTERNET#1This template creates the Press Releases subsite for an Internet-facing corporate presence website.
53Publishing Site with WorkflowBLANKINTERNET#2A 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.
33News SiteSPSNHOME#0A site for publishing news articles and links to news articles. It includes a sample news page and an archive for storing older news items.
34Site DirectorySPSSITES#0A site for listing and categorizing important sites in your organization. It includes different views for categorized sites, top sites, and a site map.
36Community area templateSPSCOMMU#0This template is obsolete.
38Report CenterSPSREPORTCENTER#0A site for creating, managing, and delivering Web pages, dashboards, and key performance indicators that communicate metrics, goals, and business intelligence information.
47Collaboration PortalSPSPORTAL#0A 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.
50Enterprise Search CenterSRCHCEN#0A 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.
51ProfilesPROFILES#0This template creates a profile site that includes page layout with zones
52Publishing PortalBLANKINTERNETCONTAINER#0A 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.
54My Site HostSPSMSITEHOST#0A 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.
56Enterprise WikiENTERWIKI#0A 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.
6115Project SitePROJECTSITE#0A site for managing and collaborating on a project. This site template brings all status, communication, and artifacts relevant to the project into one place.
59Product CatalogPRODUCTCATALOG#0A 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.
62Community SiteCOMMUNITY#0A 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.
63Community PortalCOMMUNITYPORTAL#0A site for discovering communities.
90Basic Search CenterSRCHCENTERLITE#0A 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.
90Basic Search CenterSRCHCENTERLITE#1The 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.
61Visio Process Repositoryvisprus#0A 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