Path of Javascript and CSS Files#
The files have to be saved in the library. The path there for Javascript files is
library/KnowWEExtensions/scripts/javascriptfile.js
For CSS files its:
library/KnowWEExtensions/css/cssfile.css
Register the Files#
The files have to be registred in the plugin.xml. This happens with a parameter id line. The parameter id line is added to the desired plugin. Plugins with css or javascript files can be for example actionsContent unavailable! (broken link)https://www.d3web.de/images/out.png, typesContent unavailable! (broken link)https://www.d3web.de/images/out.png, rendererContent unavailable! (broken link)https://www.d3web.de/images/out.png, toolproviderContent unavailable! (broken link)https://www.d3web.de/images/out.png and taghandlerContent unavailable! (broken link)https://www.d3web.de/images/out.png.
For Javascript files it looks like:
1
<parameter id="script" value="javascriptfile.js" />
For CSS files:
1
<parameter id="css" value="cssfile.css" />
Example#
1 2 3 4 5 6 7 8 9 10
<extension plugin-id="KnowWEExtensionPoints" point-id="TagHandler"
id="ObjectInfoTagHandler">
<parameter id="class" value="de.knowwe.core.taghandler.ObjectInfoTagHandler" />
<parameter id="name" value="ObjectInfoTagHandler" />
<parameter id="description" value="TagHandler ObjectInfoTagHandler" />
<parameter id="version" value="1.0" />
<parameter id="priority" value="5" />
<parameter id="css" value="jqautocomplete.css" />
<parameter id="script" value="KnowWE-Plugin-Core.js" />
</extension>