Adding a custom button (or any control) to "Create new entry" or "Edit entry" dialog

Adding a custom button (or any control) to "Create new entry" or "Edit entry" dialog

DT ProgerDT Proger Posts: 18Questions: 5Answers: 0

Is there any worked example(s) somewhere on the web that demonstrates how to add a custom button (or any kind of control for that matter) onto the "Create new entry" or "Edit entry" light-box dialog of the Editor?

Thank you in advance for your response.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 52,290Questions: 1Answers: 7,966 Site admin
    Answer ✓

    It depends where you want to add the button. There are three options I can think of:

    • Into the footer of the light box - use buttons()
    • Into the form as a field - use a custom field plug-in
    • Add it to an existing field - use field().node() to get the node for the field and insert as required. Or use a custom field plug-in.

    Allan

  • DT ProgerDT Proger Posts: 18Questions: 5Answers: 0

    Thanks Allan for your valuable advice; truly helpful.

This discussion has been closed.