Add button custom link

Created on 18 August 2023, about 1 year ago

Problem/Motivation

I do have project and would like to create task for the specific project. Currently when i try to create a new task via "Add" button i need to select project (entity reference) first. Hovever i would like to autocomplete the project based on url or argument so if i am raising task from the specific project it will autocomoplete directly.

I can achieve this very easily with my custom button however it is not possible to adjust "add" button in kanban view.

Is it possible to add config to allow user in views to update link of add button or to use autocomplete from parrent?

Currently if user has 50 projects every time he has to use autocomplete or select list to hit the right project when creating a new task which is not really useful.

πŸ“Œ Task
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia coaston

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @coaston
  • Status changed to Closed: works as designed about 1 year ago
  • πŸ‡«πŸ‡·France lazzyvn paris

    It can change in content type widget. The add button just open Create a new node task

  • πŸ‡ΈπŸ‡°Slovakia coaston

    Can you be more specific ? - what exactly can be changed in widget ? I do not see any option.

    Can you provide any printscreen how to change "Add button" link ?

  • πŸ‡«πŸ‡·France lazzyvn paris

    In the kanban view header in the demo you will see a link to add a new task, it supports token or twig, you can add custom code to create a variable. you can use the module https://www.drupal.org/project/prepopulate β†’ .
    in widget node task if you want you can create custom widget for your field entity and do whatever you want

  • πŸ‡ΈπŸ‡°Slovakia coaston

    I understand i can add my custom add button. However i wanted to updated the current one which is below the table/column.
    Does it mean i need to use css to get rid of it and hide? - no other option how to change it?

Production build 0.71.5 2024