Download the PHP package webexcess/redirecthandler-localization without Composer
On this page you can find all versions of the php package webexcess/redirecthandler-localization. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webexcess/redirecthandler-localization
More information about webexcess/redirecthandler-localization
Files in webexcess/redirecthandler-localization
Package redirecthandler-localization
Short Description Create shortcuts which get redirected to the matching language and region dimension of the visitor.
License MIT
Informations about the package redirecthandler-localization
WebExcess.RedirectHandler.Localization for Neos CMS
This package allows to create Neos.RedirectHandler shortcuts which gets redirected to the matching language and region dimension of the visitor.
Installation
Configuration
- dimensionIdentifiers.linguistic (string)
- The key of your linguistic dimension, default: 'language'
- dimensionIdentifiers.regional (string)
- The key of your regional dimension, default: not set
- overwriteDefaultDimensionUriSegment (array)
- A list of "dimensionIdentifier: defaultDimensionUriSegment": default: empty
- Use this to overwrite the default uri segment per dimension
- Example:
overwriteDefaultDimensionUriSegment.language: 'en'
- ipinfoToken (string)
- The token to the ipinfo.io webservice, default: '' (for non-commerical use)
- Add your own token if you need more than 1,000 requests a day
- Disable the token, to use the pecl geoip
- Or implement your very own implementation of the
LocalizationInterface
Usage
Instead of adding a speaking url to "target uri path", add the node identifier like: node://ad798967-8662-4c6f-b1d1-4c8188038d23
.
Or use the WebExcess.RedirectHandler.Backend package.
Simple Example
A site with language dimensions.
Existing dimension configuration
RedirectHandler.Localization configuration
No configuration needed.
Advanced Example
A site with language and country dimensions which is using ipinfo.io to geolocate the visitors ip address.
Existing dimension configuration
RedirectHandler.Localization configuration
Objects.yaml
Settings.yaml
Custom Example
You can add your own LocalizationInterface implementation.
All you have to return in the getTargetContext function is a valid context array, for example:
developed by webexcess GmbH
sponsored by Blaser Swisslube AG
All versions of redirecthandler-localization with dependencies
neos/neos Version ~7.0 || dev-master