ExecuteUrl element (Site)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Used in an Onet.xml file to specify the URL that is called after the site definition is instantiated.

<ExecuteUrl
  Url = "Text">
</ExecuteUrl>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
Url
Required Text. Specifies the URL of a page located in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\LAYOUTS to open after the site is instantiated.

For example:
<ExecuteUrl Url="_layouts/[%=System.Threading .Thread.CurrentThread.CurrentUICulture.LCID%]/settings.aspx"/>

Child elements

None

Parent elements

Occurrences

  • Minimum: 0
  • Maximum: 1

Remarks

Use the ExecuteUrl element to open the site definition creation process to arbitrary post-processing capabilities.