[Bulk] Add internal link

Can anyone help me please to add a new bulk action to the modal?

It would be awesome to add the “Add internal link” function to the bulk action modal

I think at least these files have to be adjusted but I’m not 100% sure what have to be added in these files :thinking:

app/Helper/TaskHelper.php
app/Template/task_bulk_change_property/show.php
app/Controller/TaskBulkChangePropertyController.php

Never modify Kanboard stuff directly, if possible. Create a plugin and overlay the related resources instead.

Yes, I now… but I’m new to Kanboard and asking for a ‘helping hand’ here (which could help to bring such an addition to the bulk modal as a plugin for example)

A ‘helping hand’ is a somewhat vague term. I’m willing to answer any concrete question, but I cannot (and don’t want) do the entire job.

Are you familiar with the PHP programming language at all?

I’d recommend taking a look at other plugins. How things are done, try to understand the architecture.

EDIT After inspecting the code for required changes: This will rarely be a beginner’s job, will get rather complex. Please be prepared and/or think about it.

I have it working here by altering the kanboard files itself.

But I have no idea how to do that the “correct way” with a plugin for example.

I’ve modified 3 files mentioned in post 1.

Diff for app/Controller/TaskBulkChangePropertyController.php - see TaskBulkChangePropertyController.php - Diffchecker
Diff for app/Helper/TaskHelper.php - see TaskHelper.php - Diffchecker
Diff for app/Template/task_bulk_change_property/show.php - see show.php - Diffchecker

Here are your options:

  • Modify Kanboard files directly, as you did, create a pull request at the Kanboard repo and hope that @fred accepts it.
  • Implement if as a plugin. But then you have to override two templates, task_list/header and task_bulk_change_property/show.

In general, I don’t like overriding because it might interfere with other plugins in use and in case Kanboard changes the original template in the future, you’d have to apply the changes to your overrides. It’s up to you to decide.

1 Like

I’ve created a pull request to the Kanboard repo.