Export (0) Print
Expand All

WebTemplateDefinition complexType (SharePoint App Manifest)

SharePoint 2013

Identifies the site type to use for the app web.

Last modified: January 09, 2014

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Type information
Definition
Elements and attributes

Namespace

http://schemas.microsoft.com/sharepoint/2012/app/manifest

Schema file

appmanifest.xsd

Extension base

None



       <xs:complexType name="WebTemplateDefinition">
     <xs:attribute name="Id"   type="WebTemplateIdDefinition"      use="required"     />
     <xs:attribute name="FeatureId"   type="GUID"      use="optional"     />
       </xs:complexType>       

If the schema defines specific requirements, such as sequence, minOccurs, maxOccurs, and choice, see the definition section.

Child elements

None.

None.

None.

Attributes

Attribute

Type

Required

Description

Possible values

FeatureId (obsolete)

GUID

optional

This attribute is obsolete. Do not use.

Values of the GUID type.

Id

WebTemplateIdDefinition

required

The ID of the WebTemplate that should be used when creating the App Web.

This type is a string of the form {hyphenated_GUID}#web_template_name. The hyphenated_GUID is the GUID of the app web Feature that contains the WebTemplate Element (Web Template) that defines the site type of the app web. (The web_template_name is the value of the Name attribute of that WebTemplate Element (Web Template). Note that the braces "{}" and the "#" are mandatory.) The following is an example:

<WebTemplate Id="{81dd4ae5-873b-4759-9838-4ad9c3dd2952}#MyNewSiteType" />

FeatureId

GUID

optional

The Id of the Feature that contains the WebTemplate.

Values of the GUID type.

Id

WebTemplateIdDefinition

required

The Id of the WebTemplate that should be used when creating the App Web.

Values of the WebTemplateIdDefinition type.

Show:
© 2014 Microsoft