Sites and Channels Configuration
In Bloomreach Content, only mounts that reference an hst:configuration containing an hst:channel node appear in the Experience manager overview. You can configure the hst:channel node directly under the hst:configuration node or within the hst:workspace subnode of the hst:configuration.
- If you configure the
hst:channeldirectly underhst:configuration, channel settings are read-only in the Experience manager. - If you configure the
hst:channelunderhst:workspace, channel settings are editable in the Experience manager.
For example, if your project is named example, the following configuration results in read-only channel settings:
/hst:hst: /hst:configurations: /example: /hst:channel: /hst:channelinfo:
To make channel settings editable, configure the channel under hst:workspace:
/hst:hst: /hst:configurations: /example: /hst:workspace: /hst:channel: /hst:channelinfo:
Site Node Configuration
Under /hst:hst/hst:sites, define hst:site nodes. Each hst:site node connects:
- The absolute content location for the mount, specified by the
hst:contentproperty. - The
hst:configurationfor the mount, which includes the sitemap and, optionally, the HMVC configuration.
For details on how a mount references an hst:site, see the hosts configuration documentation. A mount uses the hst:mountpoint property to point to an hst:site. The hst:site node specifies the content location with hst:content and references its configuration either:
- By the
hst:configurationpathproperty, or - By naming convention (preferred): the
hst:sitenode name matches a node under/hst:hst/hst:configurations.
Example: Local and Production Environments
The following configuration example demonstrates a setup for a single channel with both local development and production environments:
/hst:hst: /hst:configurations: /example: /...: /hst:workspace: /...: /hst:channel: /hst:hosts: /dev-env: /localhost: /hst:root: hst:mountpoint: /hst:hst/hst:sites/example /prod-env: /com: /example: /www: /hst:root: hst:mountpoint: /hst:hst/hst:sites/example /hst:sites: /example: hst:content: /content/documents/example /content: /documents: /example: /common: /news: /...:
In this configuration:
- Both
http://localhostandhttp://www.example.comresolve to the/mount (hst:root). - The
hst:rootmount points to/hst:hst/hst:sites/example. - The
hst:sitenode at/hst:hst/hst:sites/examplespecifies that content is located under/content/documents/example. - Because the
hst:sitenode does not define an explicithst:configurationpath, it uses the naming convention to determine its sitemap configuration and HMVC configuration:/hst:hst/hst:configurations/example.