Page 1 of 1
Using a DITA extension framework script plugin override the DITA Map view icon
Posted: Tue Apr 04, 2023 10:11 pm
by Vince
Hello,
After adding our extension to oXygen web author, the icon of the DITA Map view doesn't appear anymore :
image.png
Before :
image.png
Insepcting element show this css rule
Code: Select all
background-image: url(../rest/v25.0.0/load/framework/3%252Fframework%252Fdita-extension.exf%252Fdita-extension-bundke/img/DITAMap24.png);
Our bundle is named
dita-extension-bundle.jar
Our exf is located into
framework/
How to restore default icon ? or set new one ?
Regards,
Vincent
Re: Using a DITA extension framework script plugin override the DITA Map view icon
Posted: Wed Apr 05, 2023 10:05 am
by mihaela
Hello,
We are aware of this problem and the fix is already available in the last Web Author, version 25.1, that we recently released:
https://www.oxygenxml.com/xml_web_autho ... uthor.html
What version do you use? Can you update Web Author to 25.1?
Best Regards,
Mihaela
Re: Using a DITA extension framework script plugin override the DITA Map view icon
Posted: Thu Apr 06, 2023 1:36 am
by Vince
Hello,
Thanks for reply.
We can't update to 25.1 for now. I temporary redefine, using css rule, the DITA Map icon.
Regards,
Re: Using a DITA extension framework script plugin override the DITA Map view icon
Posted: Thu Apr 06, 2023 7:45 am
by mihaela
Hello,
As a workaround, until you update Web Author to 25.1, you can copy the DITA MAp image (DITAMap24.png) from DITA/web/img folder to [your_framework_dir]/web/img.
Best Regards,
Mihaela
Re: Using a DITA extension framework script plugin override the DITA Map view icon
Posted: Thu Apr 06, 2023 10:25 am
by Vince
Hello,
The workaround you suggest to me doesn't work because of my framework is packaged as a jar following your sample plugin
https://github.com/oxygenxml/web-author ... -extension
Regards,
Re: Using a DITA extension framework script plugin override the DITA Map view icon
Posted: Thu Apr 06, 2023 11:34 am
by mihaela
Hello,
If you do not necessarily need to do this in a plugin you can simply use the framework, like in this example:
https://github.com/oxygenxml-incubator/ ... ute-values
Best Regards,
Mihaela