From 6f0006d5ddbc788960adfc7153065a9ce75c8463 Mon Sep 17 00:00:00 2001 From: Dan Wallis Date: Sun, 13 Feb 2022 16:41:12 +0000 Subject: [PATCH 1/3] Update documentation to match new feature --- .../install-gde/install/cli/install-cli-subcommands-maint.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/guides/v2.3/install-gde/install/cli/install-cli-subcommands-maint.md b/src/guides/v2.3/install-gde/install/cli/install-cli-subcommands-maint.md index c2e9bdb34dc..fb0b7312392 100644 --- a/src/guides/v2.3/install-gde/install/cli/install-cli-subcommands-maint.md +++ b/src/guides/v2.3/install-gde/install/cli/install-cli-subcommands-maint.md @@ -86,7 +86,10 @@ bin/magento maintenance:allow-ips .. [--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's 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: From 73c90d0c18064eda5dbd9ac459cbb409af6b48e7 Mon Sep 17 00:00:00 2001 From: Donald Booth Date: Tue, 15 Feb 2022 04:48:02 -0500 Subject: [PATCH 2/3] Update src/guides/v2.3/install-gde/install/cli/install-cli-subcommands-maint.md Co-authored-by: Barny Shergold --- .../install-gde/install/cli/install-cli-subcommands-maint.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guides/v2.3/install-gde/install/cli/install-cli-subcommands-maint.md b/src/guides/v2.3/install-gde/install/cli/install-cli-subcommands-maint.md index fb0b7312392..30a32eba566 100644 --- a/src/guides/v2.3/install-gde/install/cli/install-cli-subcommands-maint.md +++ b/src/guides/v2.3/install-gde/install/cli/install-cli-subcommands-maint.md @@ -86,7 +86,7 @@ bin/magento maintenance:allow-ips .. [--none] ## Multi-store setups -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's set in `MAGE_RUN_TYPE` in your server configuration. +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. From e7633965fdcbc0a0f95d886add8f3ee99b7c55ce Mon Sep 17 00:00:00 2001 From: Donald Booth Date: Wed, 16 Feb 2022 12:54:05 -0500 Subject: [PATCH 3/3] Editorial pass --- .../install-gde/install/cli/install-cli-subcommands-maint.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/guides/v2.3/install-gde/install/cli/install-cli-subcommands-maint.md b/src/guides/v2.3/install-gde/install/cli/install-cli-subcommands-maint.md index 30a32eba566..ac152f88307 100644 --- a/src/guides/v2.3/install-gde/install/cli/install-cli-subcommands-maint.md +++ b/src/guides/v2.3/install-gde/install/cli/install-cli-subcommands-maint.md @@ -86,9 +86,9 @@ bin/magento maintenance:allow-ips .. [--none] ## Multi-store setups -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. +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 specific configuration on your server. +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.