-
Hi there, I've inherited the plugin of I'm able to render a template ( => this would need a few words in the doc (folder structure and call) how can I add them? [Edit -> ok that's done] ) thanks to the But I haven't found any clues of how to load a 'plugin javascript file', some sort of 'pluginstatic loader' I've tried to add a script tag in the template, but as the file is not in the static path, it can't find it. Is there anything I missed? or any tags ? or anything to set up to be able to load/serve and execute som js script ? [Edit] Is there any way to add a panel to the Index Page to add some sort of "dashboard" panel? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello, I was at the same point as you a while ago. The documentation is not very well documented for these integration plugins, but you can take a look at the doc strings in the code at: https://github.com/inventree/InvenTree/blob/master/InvenTree/plugin/base/integration/mixins.py#L610-L652 . Look at the properties you can append to your pannel object. There you'll find something for loading your script. |
Beta Was this translation helpful? Give feedback.
Hello, I was at the same point as you a while ago. The documentation is not very well documented for these integration plugins, but you can take a look at the doc strings in the code at: https://github.com/inventree/InvenTree/blob/master/InvenTree/plugin/base/integration/mixins.py#L610-L652 . Look at the properties you can append to your pannel object. There you'll find something for loading your script.