[Koha-bugs] [Bug 35070] Koha plugins implementing "background_jobs" hook can't provide view template

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 18 16:28:33 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35070

--- Comment #2 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 157323
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157323&action=edit
Bug 35070: Proof of concept

Add the following methods to your plugin

    sub template_include_paths {
        my ($self) = @_;

        return [
            $self->mbf_path('inc'),
        ]
    }

Then create a file
Koha/Plugin/YourPlugin/inc/background_jobs/plugin_NAMESPACE_JOBTYPE.inc
with 3 TT BLOCKs: "process", "report" and "js"

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list