https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42163 --- Comment #13 from David Cook <dcook@prosentient.com.au> --- (In reply to David Cook from comment #7)
(In reply to David Cook from comment #6)
This sounds pretty good but if we use "jsinclude" in the wrapper, does that mean we can't use jsinclude in the plugin? Or does the plugin just override it and then it's up to the plugin to supply [% Asset.js("js/admin-menu.js") | $raw %] in its own jsinclude?
Looking at an old plugin I did with a plugin wrapper and I did include a jsinclude in it. I think it probably just a case then of the latter overriding the former.
--
It's outside the scope of this change, but I have been thinking that we need a mechanism to replace jsinclude, so that one can provide multiple blocks.
You can see at koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt that the ILL stuff works around it a bit by using backend_jsinclude but that's still a case of only being able to add 1 more...
So I found a template where the jsinclude actually just includes other BLOCKs that I set elsewhere. If we had a "plugin_js" BLOCK or something that could also be an option.. -- You are receiving this mail because: You are watching all bug changes.