Bug 36621 - provide built-in way to load css/js only for selected URL paths
Summary: provide built-in way to load css/js only for selected URL paths
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Plugin architecture (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-17 11:37 UTC by davewood
Modified: 2024-04-17 11:40 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davewood 2024-04-17 11:37:37 UTC
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)