Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Update documentation to match new feature - localised error pages #9363

Merged
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ bin/magento maintenance:allow-ips <ip address> .. <ip address> [--none]

## Multi-store setups

If you want to set up multiple stores, each with a different layout and localized content, pass the `$_GET['skin']` parameter to the intended processor.
If you want to set up multiple stores, each with a different layout and localized content, this can be achieved by creating a skin for each and putting this into `pub/errors/{name}` where `{name}` matches the store code set in Magento and in `MAGE_RUN_CODE` in your server configuration. To distinguish between stores and websites with the same code, use `pub/errors/{type}-{name}` where `{type}` is either `store` or `website` and matches what is set in `MAGE_RUN_TYPE` in your server configuration.

Another option is to pass the `$_GET['skin']` parameter to the intended processor. This method requires specific configuration on your server.

In the following example, we are using a `503` type error template file, which requires localized content.

The constructor of the `Error_Processor` class accepts a `skin` GET parameter to change the layout:
Expand Down