Site module
Developer productivity Bundled: Community edition
Edition |
CE |
License |
|
Issues |
|
Git |
|
Maven site |
|
Latest |
2.0.0 |
The Site module provides a site API. It allows you to create a site definition that contains configuration for a whole site such as navigation and common page areas.
Installing with Maven
Maven is the easiest way to install the module. Add the following to your bundle:
<dependency>
<groupId>info.magnolia.site</groupId>
<artifactId>magnolia-site</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>info.magnolia.site</groupId>
<artifactId>magnolia-site-themes</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>info.magnolia.site</groupId>
<artifactId>magnolia-site-jcr</artifactId>
<version>2.0.0</version>
</dependency>
Configuration
You can configure a site using a YAML definition file in the For an example site definition, see the |
Property | Description | ||||
---|---|---|---|---|---|
|
optional |
||||
|
optional The template prototype is a master template definition which applies to the whole site. Anything you configure in the prototype is applied to all page templates. |
||||
|
optional Template availability defines which page templates are available to editors in the Pages app. There are more ways to control page template availability. |
||||
|
optional, default is Enables and disables the site definition. |
||||
|
optional Maps domain names to the site. Requires the Multisite module. |
||||
|
optional Reference to a theme that defines the look and feel of the site. |
||||
|
optional Locale configuration and support for entering and serving content in multiple languages. When configuring the i18n node, make sure to provide the properties |
||||
|
required (when using i18n) For instance use |
||||
|
optional, default is |
||||
|
optional URI mappings that define which node in a workspace should be served when a particular URI is requested. |
||||
|
optional Configuration of a Trusted proxy headers filter for the given site.
Filter configuration parameters determine which headers are allowed or checked by this filter.
Available header names:
|
||||
|
optional Custom template properties that you can access from a script without having to write a class. |
||||
|
optional Variations adapt the site for different devices or geographical locations. |
||||
|
optional A CORS configuration for the site definition. For configuration details, see the properties section on the Request processing and filters page. |
Usage
For usage and an example configuration, see the Site definition page.