Page 1 of 1

Customize Author view based on metadata field in topic

Posted: Mon Mar 14, 2022 3:50 pm
by ann.jensen
Hi,
Is there any way to visually flag a topic as being highly sensitive so that when an author opens it in XML Editor, the Author view will show some highlighting or change in colour or warning icon to tell the author that this is a highly sensitive topic?
Any advice appreciated,
Regards,
Ann

Re: Customize Author view based on metadata field in topic

Posted: Tue Mar 15, 2022 8:20 am
by Radu
Hi Ann,

How about if you set an @outputclass attribute on the topic root element? Something like:

Code: Select all

<topic outputclass="important"..>
...
Then add an extra CSS for editing:
https://blog.oxygenxml.com/topics/customizeDITACSS.html

The CSS could add a selector like this maybe:

Code: Select all

:root[outputclass='important']:before{
  color: red;
  content: "PROCEED WITH CAUTION";
}
Regards,
Radu