How to show language attribute on knowledge block and knowledge article
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2023 09:20 AM
How to show language attribute on knowledge block and knowledge article
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2023 12:50 AM
The language field is activated as part of the following Plugin: com.glideapp.knowledge.i18n2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2023 12:04 PM
I just realized you wanted to show the language on the KB article itself...
If you want to have the language shown like this:
... You have to do the following:
1.) Open the UI Macro kb_view_common_header_banner_image (/sys_ui_macro.do?sys_id=b74cff91c30031000096dfdc64d3ae65)
2.) Scroll down the XML completely and add the following in line 51:
<div style="white-space:pre-line">$[HTML:knowledgeRecord.language.getLabel()]: $[HTML:knowledgeRecord.language.getDisplayValue()]</div>
The final UI Macro will look like this:
This should do the job, if you have any questions, let us know.