Enabling Language Variants on Document Types
IMPORTANT: For Document Types created as a part of Externable template content Language Variants have been enabled where possible. So this remark is mainly for your additional, custom Document Types
Now that there are two languages to vary the content with, it needs to be enabled on the document types you wish to use it with. To do so head to a Document Type in the Settings section. In the top right corner you can go to permissions and then check the "Allow varying by culture" toggle:
Now to allow a property on the doctype to be varied it will have to be enabled for the property:
Working with Language Variants on content
When you return to your content node you will notice two things.
- At the top of the content tree there will now be a dropdown so you can show the content tree in the language of your choice.
- To the right of the content name there is now a dropdown where you can select a language. You can also open a split view so you can see two languages at once.
Each property editor that does not allow variants will be greyed out and have the content of the default language.
To read about how you render variant content in templates, check out the templates rendering article.
Test your language variants
Culture and hostnames must be added to your language sites before the content can be tested for variants.
- Right-click the Home node and select Culture and Hostnames.
- Add a specific url per language and save. For eg: An English language variant with English (United States) as the language can be given a specific url https://yourwebsite.com/en-us and a Danish language variant can be given a specific url https://yourwebsite.com/dk.
- The Info content app should now show specific urls for your language variants.