Hi,

Plugins are great :D

Note that git repo must contain dirs Koha/Plugin/xxx

For example add <pluginsdir>/home/koha/plugins/koha-plugin-opac-matomo</pluginsdir> for plugin https://github.com/biblibre/koha-plugin-opac-matomo

For some plugins you may have to patch to set version.
For example https://github.com/bywatersolutions/koha-plugin-coverflow
Replace in Koha/Plugin/Com/ByWaterSolutions/CoverFlow.pm :
  our $VERSION = "{VERSION}";

Don't forget to restart plack after each code change.
Re-run misc/devel/install_plugins.pl if you implement a new hook in your plugin.

You may look at https://github.com/bywatersolutions/dev-koha-plugin-kitchen-sink to see examples of implemtation.

Best regards 🦄

Le 19/01/2022 à 11:18, Samu Heiskanen a écrit :

Thanks, Michael!


On Wed, 19 Jan 2022 13:37:28 -0700, "Michael Hafen (TECH)" 
<[email protected]> wrote:

The way I do it is:
add a directory to the koha-conf.xml with a <pluginsdir> tag, that will be
where I `git clone` the plugins.
`git pull` as necessary, then
`koha-shell [instance] -c /usr/local/koha_source/misc/devel/
install_plugins.pl`

That's with the koha instance running from the koha_source directory in
dev_mode.


On Wed, Jan 19, 2022 at 12:30 PM Samu Heiskanen <[email protected]>
wrote:

Hi,

I am a new Koha developer from windy and cold Finland. As new to the
Koha-community, I'd like to wish all the best for everyone in the community.

I have a problem with installing Koha plugins. I tried to find guidelines
how install plugin from Git-repository, but haven't found. I'm forking a
plugin and setting up an environment for development and testing. What is
the the preferred way to install plugin from Git?

Best Regards,

Samu Heiskanen
_______________________________________________
Koha-devel mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/
git : https://git.koha-community.org/
bugs : https://bugs.koha-community.org/



--
Michael Hafen
Washington County School District Technology Department
Systems Analyst


_______________________________________________
Koha-devel mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/
git : https://git.koha-community.org/
bugs : https://bugs.koha-community.org/

--
Fridolin SOMERS <[email protected]>
Software and system maintainer 🦄
BibLibre, France
_______________________________________________
Koha-devel mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/
git : https://git.koha-community.org/
bugs : https://bugs.koha-community.org/

Reply via email to