flownative/neos-hostbaseddefaultpreset

Last activity on 12 December 2020
  • 6
  • 4
  • 2331
composer require flownative/neos-hostbaseddefaultpreset

This allows to have the default preset for content dimensions change depending on the hostname of a site

0.0.5

This allows to have the default preset for content dimensions change depending on the hostname of a site

Version
0.0.5
Type
neos-package
Release Date
17.12.2020 15:19:15
Source
git
Distribution
zip
Requires
  • neos/neos: ~3.0 || ~4.0 || ~5.0 || dev-master
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT 955219dbbe25e6a1030f6a898e06dec0a5ba64e6

MIT license Packagist Maintenance level: Friendship

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.

The content of the readme is provided by Github
The same vendor provides 40 package(s).