Customize Author view based on metadata field in topic

Post here questions and problems related to editing and publishing DITA content.
ann.jensen
Posts: 295
Joined: Wed Jun 17, 2015 10:19 am

Customize Author view based on metadata field in topic

Post 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
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customize Author view based on metadata field in topic

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply