You may want to to display localized page names to users of translated content. For example:
- Rather than having a Spanish-speaking user navigate to:
- It would be better for the URL to be:
The challenge with localizing the name of the page is that many of the localization tools available on the AEM platform rely on having the page names match across locales in order to keep the content synchronized.
The sling:alias property allows you to have our cake and eat it too. sling:alias can be added as a property to any resource to allow for an alias name for the resource. In the previous example, you would have:
- A page in the JCR at:
- Then add a property to it:
sling:alias = casa
This would allow the AEM translation tools such as the multi-site manager to continue to maintain a relationship between:
While also allowing end users to interact with the page name in their native languages.