Page 1 of 1
Change error text, if an file could not be found
Posted: Thu Mar 10, 2016 5:20 pm
by Denis
Hi,
we are using Eclipse Oxygen Author 17.1.
I want to change the message, if a file, which is a referenced in a conref could not be found.
How I could achieve this?
Best regards
Denis
Re: Change error text, if an file could not be found
Posted: Fri Mar 11, 2016 10:31 am
by Radu
Hi Denis,
Do you mean the message which is display embedded in the Author visual editing mode? It's something like
Target file not found, right?
Do you want it to be translated or just want a custom message in place?
There is an error node in the Author mode which contains this text.
In the CSS you can match it like:
Code: Select all
@namespace oxy "http://www.oxygenxml.com/extensions/author";
oxy|error{
.....
}
and for example try to hide its text content, maybe add some static content on it. Or match it from the StylesFilter API.
Or you could try to rewrite the entire
ro.sync.ecss.extensions.dita.conref.DITAConRefResolver customization and provide your own custom error messages.
Regards,
Radu