Skip to content

[6.x] Pinned Actions#13896

Open
duncanmcclean wants to merge 2 commits into6.xfrom
pinned-actions
Open

[6.x] Pinned Actions#13896
duncanmcclean wants to merge 2 commits into6.xfrom
pinned-actions

Conversation

@duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Feb 11, 2026

This pull request introduces the concept "pinned actions" - essentially actions that are visible without needing to open the dropdown.

CleanShot 2026-02-11 at 15 34 33

On one of my sites, the most common action content editors make is syncing videos from YouTube.

Right now, they have to open the actions dropdown and trigger the action from there. It would be nice if it was slightly more obvious - like "Create Entry" is.

This PR makes that possible - simply set the $pinned property in your action and it'll render as a button where it makes sense.

class SyncFromYouTube extends Action
{
    protected static $title = 'Sync from YouTube';

+    protected $pinned = true;

    public function icon(): string
    {
        return 'sync';
    }
    
    public function run($items, $values)
    {
        // ...
    }
}

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.

1 participant