Edit-time navigation creation extension | HCL Digital Experience Multilingual Solution
This extension provides a way to change between localizations of the same item and to create new items in localized libraries.
The extension has two versions that differ only when the extension itself renders its results. The Auto Load version renders immediately, whereas the Manual Load version requires the user to click Refresh before any results are returned.
- Add a text element that is named ML Translations to an authoring template.Note: This element is displayed in the content item form only if the Multilingual Solution is enabled. Otherwise, this element is hidden in the content item form, but still visible in the Manage Elements dialog.
- Edit the element properties and add the following code to the custom JSP field:
- For the Auto load version before version 8.5 CF3
-
readMode=/wps/wcmml;/jsp/html/MLAuthorTimeRead_AutoLoad.jsp, editMode=/wps/wcmml;/jsp/html/MLAuthorTimeEdit_AutoLoad.jsp
- For the Auto load version for version 8.5 CF3 or higher
-
readMode=[wcm.mls.context.path];/jsp/html/MLAuthorTimeRead_AutoLoad.jsp, editMode=[wcm.mls.context.path];/jsp/html/MLAuthorTimeEdit_AutoLoad.jsp
- For the Manual load version before version 8.5 CF3
-
readMode=/wps/wcmml;/jsp/html/MLAuthorTimeRead_ManualLoad.jsp, editMode=/wps/wcmml;/jsp/html/MLAuthorTimeEdit_ManualLoad.jsp
- For the Manual load version for version 8.5 CF3 or higher
-
readMode=[wcm.mls.context.path];/jsp/html/MLAuthorTimeRead_ManualLoad.jsp, editMode=[wcm.mls.context.path];/jsp/html/MLAuthorTimeEdit_ManualLoad.jsp
- Save the authoring template and reapply the template to all content that uses it ensuring the Add new elements option is selected.
How it works
Every time that you open a content item that uses this extension in the authoring portlet, all libraries that are configured in the current multilingual configuration file are searched for all matching content. To be matching, it must be in the same site area path and have the same name.If a matching content item is found, then information about the content, item including a link to open that item in read mode, is displayed. If the existing content item is a link, then information about the originating content item is displayed instead.
- Copy
- Clicking Copy creates a draft with the same name as the current item under the equivalent site area in the localized library.
- Link
- Clicking Link creates a content link to the current content under the equivalent site area in the localized library.