Site module
Developer productivity Bundled: Community edition
Edition |
CE |
License |
|
Issues |
|
Git |
|
Maven site |
|
Latest |
2.0.1 |
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.1</version>
</dependency>
<dependency>
<groupId>info.magnolia.site</groupId>
<artifactId>magnolia-site-themes</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>info.magnolia.site</groupId>
<artifactId>magnolia-site-jcr</artifactId>
<version>2.0.1</version>
</dependency>
Configuration
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 the editors using 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 Node containing a locale configuration, with which you can add support for entering and serving content in multiple languages in your project.
|
||||
|
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 Request processing and filters: Properties. |
i18n node
Properties
Property | Description |
---|---|
|
optional, default is Enables support for localized content. Used to rewrite URIs and getting nodes based on the current language. |
|
required Class that implements info.magnolia.cms.i18n.I18nContentSupport such as:
|
|
optional, default is Content is served for the fallback locale if content is not available for the current locale. |
|
optional If no locale can be determined, the default locale will be set. If no default locale is defined, the fallback locale is used. |
|
required |
|
required An arbitrary locale ID.
For example, one that consists of language and country such as |
|
optional, for configurations using the Country code, such as |
|
required, unless a configuration with the Language code such as |
|
required, unless a configuration with the An IETF BCP 47 language tag. |
|
optional, default is Enables the locale. |
Usage
See Site definition.