Sunday, January 12, 2020

AEM | Multisite setup approaches


Setting a new language site


For multi-site requirement, creating a new language site should be done using following steps:

1.      Create a new language master

For any language site, the base should be a language master. Remember the standard rule- “One master per language”. If the master language already exist then use that only, skip this step. All master languages should be created under “/content/mysite/language-masters”. E.g. for all English sites (en_us, en_uk etc.) the base should be English master (/content/mysite/language-masters/en).
              To create a new language master use the language copy option.
a.       Go to /sites.html/content/mysite/language-masters

b.       Click on Create -> Language Copy

c.       In the next screen, Click “Add Pages”  then select “/content/mysite/language-masters/en” as source (You can select any other existing language as per need)
d.       In next screen, select target language (for which you are creating master) and fill in other details

e.       Next select “Create Structure” and Click on “Create”, done.

f.        Now you can see that your language master is created:

2.      Create a new language site

To create a new language site- Use the “live copy” option. The new site should be created based on the respective language master. Follow the steps below:
a.       Go to /sites.html/content/mysite
b.       Click on Create -> Live Copy

c.       In the next step, select the respective language master as source and click “Next”

d.       Select Destination as “/content/mysite” and click “Next”

e.       In the next screen, enter necessary details.
                                             I.            Make sure to enter name as {language-code}_{country-code} e.g. “fr_fr”
                                           II.            Select Rollout Configs as “Standard rollout config”

f.        Click on create. That’s it. You have completed the language site creation.

No comments:

Post a Comment

CDN | Clearing Cloudflare cache

In order to clear Cloudflare cache automatically via code, follow below steps: 1. Develop Custom TransportHandler Develop a custom Trans...