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 all 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.
To set up multiple stores, each with a different layout and localized content, create a skin for each and put it into `pub/errors/{name}` where `{name}` is the store code. To distinguish between stores and websites with the same instance, use `pub/errors/{type}-{name}` where `{type}` is either `store` or `website` and matches the `MAGE_RUN_TYPE` in your server configuration.

Another option is to pass the `$_GET['skin']` parameter to the intended processor. This method requires a 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