flownative/neos-hostbaseddefaultpreset
最新稳定版本:0.0.8
Composer 安装命令:
composer require flownative/neos-hostbaseddefaultpreset
包简介
This allows to have the default preset for content dimensions change depending on the hostname of a site
README 文档
README
Host-based Content Dimension Default Presets for Neos
This allows to have the default preset for content dimensions change depending on the hostname of a site.
Installation
composer require flownative/neos-hostbaseddefaultpreset
Configuration
After setting up your content dimensions as usual, configure the default presets per content dimension like this:
Flownative:
Neos:
HostBasedDefaultPreset:
dimensions:
'language':
defaultPresetByHost:
'acme.com': 'en'
'acme.de': 'de'
If you like, you can configure the package to set the uriSegment for each default preset to an empty string:
Flownative:
Neos:
HostBasedDefaultPreset:
forceEmptyUriSegment: true
This way the default dimension value "disappears" from the URL. Make sure to set a segment for all values in the "real" dimension configuration, to be able to switch on all hosts without issues!
Credits
Development of this package has been sponsored by web&co OG, Vienna, Austria.
统计信息
- 总下载量: 5.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-21