| Summary: | provide built-in way to load css/js only for selected URL paths | ||
|---|---|---|---|
| Product: | Koha | Reporter: | davewood |
| Component: | Plugin architecture | Assignee: | Bugs List <koha-bugs> |
| Status: | NEW --- | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | paul.derscheid |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Crowdfunding goal: | 0 |
| Patch complexity: | --- | Documentation contact: | |
| Documentation submission: | Text to go in the release notes: | ||
| Version(s) released in: | Circulation function: | ||
it would be neat to have a built in way of selecting the paths the js/css hooks should be applied on. as opposed to checking if the current path matches the paths the plugin is supposed to be running in via CGI (`$self->{cgi}->script_name =~ m/addbiblio.pl/`) ps: especially since the CGI way requires you to initalize `$self->{cgi} = CGI->new` manually (possibly depending on the actual hook that is used)