N
N
Nikolay Eliseev2016-08-25 13:45:01
Drupal
Nikolay Eliseev, 2016-08-25 13:45:01

Drupal 8: How to add custom control when editing content?

Good afternoon!
There are entities (Node) and there is a need for the administrator, in content editing mode, to add 1-2 buttons + text (not separate fields. Buttons are purely auxiliary).
How can this be done?
Ideally, for me, javascript will connect to the edit form.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pibiv, 2016-08-25
@nelis

via form alter.
and there already look at Drupal forms api, and connect the element. If you need to connect custom JS, then use drupal add js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question