How to show language attribute on knowledge block and knowledge article

Shiksha1
Tera Contributor

How to show language attribute on knowledge block and knowledge article

6 REPLIES 6

The language field is activated as part of the following Plugin: com.glideapp.knowledge.i18n2

MarkusKraus_0-1685432981721.png

 

Markus Kraus
Kilo Sage

I just realized you wanted to show the language on the KB article itself...

 

If you want to have the language shown like this:

MarkusKraus_0-1685386861155.png

... 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:

MarkusKraus_1-1685387008207.png

This should do the job, if you have any questions, let us know.