it certainly is possible. In your Gemfile.plugins file you find each plugin together with a git url. The git url is the place where you can download the plugins sources.
Let’s say you want to edit my emoji plugin for some reasons. Then you’ll find the following line in your Gemfile.plugins:
You see that the plugin can be found in a git repository on Github. Go to the github page of the plugin (in this case https://github.com/tessi/openproject-emoji) and fork the repository into your GitHub account.
After waiting a few second, you’ll find a copy of the plugin repository under your github name.
You can download (clone) the newly created repository to your computer with git clone https://github.com/<your github username>/openproject-emoji.git (make sure you are not in the openproject directory. I find it best to have a plugins directory where all my plugin development happens siting next to my openproject directory).
In your Gemfile.plugins file change the line containing your plugin to:
Now the plugin will not be taken from GitHub, but from a directory on your computer. Namely the openproject-emoji directory which is located in a path (../plugins) relative to your OpenProject installation.
In that directory you may make any changes you want, test them (you may need to restart the OpenProject server after you changed things), commit them and push them back into your GitHub repository.
If your changes are valuable for the community the plugin author is probably happy if you create a Pull Request to the original plugin so that (s)he can integrate your changes.
Replies (1)
Hi Sebastian,
it certainly is possible. In your
Gemfile.plugins
file you find each plugin together with a git url. The git url is the place where you can download the plugins sources.Let’s say you want to edit my emoji plugin for some reasons. Then you’ll find the following line in your
Gemfile.plugins
:You see that the plugin can be found in a git repository on Github. Go to the github page of the plugin (in this case https://github.com/tessi/openproject-emoji) and fork the repository into your GitHub account.
After waiting a few second, you’ll find a copy of the plugin repository under your github name.
You can download (clone) the newly created repository to your computer with
git clone https://github.com/<your github username>/openproject-emoji.git
(make sure you are not in the openproject directory. I find it best to have aplugins
directory where all my plugin development happens siting next to my openproject directory).In your
Gemfile.plugins
file change the line containing your plugin to:Now the plugin will not be taken from GitHub, but from a directory on your computer. Namely the
openproject-emoji
directory which is located in a path (../plugins
) relative to your OpenProject installation.In that directory you may make any changes you want, test them (you may need to restart the OpenProject server after you changed things), commit them and push them back into your GitHub repository.
If your changes are valuable for the community the plugin author is probably happy if you create a Pull Request to the original plugin so that (s)he can integrate your changes.
I hope that helps :)
— tessi