Publishing Site Definition

Adds a standard publishing site definition along with the required features.

Recipe Description

The publishing site definition creates a site with the publishing infrastructure and publishing site feature enabled and provides functionalities for web content management.
It creates three features which are required to activate the several components of the publishing site.

Arguments

Name Description
Site Template settings
Name Required Text. Specify the name of the folder which will be created in folder SiteTemplates. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters.
Title Required Text. Title of the site template as it appears in the selection of Create Site dialog. Limited to 255 characters.
ID Required Number. Id of the site template. Should be unique on the farm and greater than 10000.
Description Required Text. Longer description of the purpose of this site definition.
Display Category Required Text. Title of the cateogry in which the site definition should appear in the Create Site dialog. Limited to 255 characters.
Master Page Settings
Name Required Text. Name of the Master Page. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters.
Title Required Text. Title (friendly name) of the Page Layout. Limited to 255 characters.
Description Optional Text. Description of the Master Page.
Page Layout Settings
Page Layout Content Type Required Content Type. Content Type of this Page Layout.
Name Required Text. Name of the Page Layout class file. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters.
Title Required Text. Title (friendly name) of the Page Layout. Limited to 255 characters.
Description Optional Text. Description of the Page Layout.
Options
Create Provisioning XML Optional Boolean. If TRUE creates a file named Portal.XML with XML data for the creation of subsites after provisioning this site template.
Create Provisioning Handler (.cs) Optional Boolean. If TRUE creates a cs.file for handling the event of provisioning.
Hidden Optional Boolean. If TRUE hides the site definition from the Create Site dialog. Creation of sites with this definition through code will be still possible.
Allow global Feature associations Optional Boolean. If TRUE the site definition is allowed to be associated to global features.
Root Web Only Optional Boolean. If TRUE the site created from the configuration can only exist as the root Web site in a site collection. This attribute is not enforced in site templates (.stp files).
Sub Web Only Optional Boolean. If TRUE tthe site created from the configuration can only exist as a subsite within a site collection.

References

Authors

  • Torsten Mandelkow
  • Matthias Einig

Version history

  • 1.1 Updated Documentation
  • 1.0 Initial Recipe