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. At the plugin where you want to use your file you have to add a parameter id line.
For Javascript files it looks like:
<parameter id="script" value="javascriptfile.js" />
For CSS files:
<parameter id="css" value="cssfile.css" />
Example#
<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>