Skip to content

[5.6] Add the ability to define additional alternative save actions on elements#16294

Merged
brandonkelly merged 6 commits into5.6from
feature/56-add-additional-alt-actions-method-to-elements
Dec 10, 2024
Merged

[5.6] Add the ability to define additional alternative save actions on elements#16294
brandonkelly merged 6 commits into5.6from
feature/56-add-additional-alt-actions-method-to-elements

Conversation

@nfourtythree
Copy link
Copy Markdown
Contributor

Description

On element edit pages it is currently possible to define additional buttons or action menu items that appear in the disclosure menu.

However, it isn't possible to define alternative save actions. This PR rectifies that issue by adding the ability for elements themselves to register their own alternative actions and also adds an event that developers can hook into.

From an element's perspective, this is good for a developer creating a custom element that they would like to have more than the standard set of alternative actions.

The event then gives developers the opportunity to hook into any element type to add additional alternative actions. Perhaps they could have additional actions for a specific entry type like "Save and send to XYZ API" or "Save and notify author".

@nfourtythree nfourtythree self-assigned this Dec 9, 2024
@brandonkelly brandonkelly merged commit ea648e8 into 5.6 Dec 10, 2024
@brandonkelly brandonkelly deleted the feature/56-add-additional-alt-actions-method-to-elements branch December 10, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants