Issue
- We've found that when using the 'Multi Column Layout' widget template and setting the Language section on a category filter to French (ex: fr_Fr) it reverts back to 'en_US'.
- This occurs even when the Account Settings for a user are altered to French.
- Steps to reproduce:
- Create a vocabulary with at least one other localization.
- Add a category to it with at least one other localization.
- Add the category filter widget to a widget page and configure it to display the category using the Multi Column Layout template.
- Configure the language on the category filter to French and Save.
Environment
- DXP 7.4+
Resolution
- The root cause is within the Multi Column Layout widget template. The workaround is to change the default template.
- Navigate to the global scope menu > Template > Widget Template > Multi Column Layout.
- Change line 45 from:
-
<a ref="${categoryURL}">${category.getName()}</a>
-
- to:
-
<a href="${categoryURL}">${category.getTitle(themeDisplay.getLocale())}</a>