Document clearly how contrib modules and/or site builders determine which content form buttons are primary

Created on 17 November 2024, 11 months ago

Problem/Motivation

Scenarios:

  • For most uses of Layout Builder Save And Edit β†’ , the "Save and edit layout" button should be in the main sticky area and "Save" should be relegated to the kebab menu, instead of the other way around.
  • ✨ Make adding action buttons to kebab menu optional Active mentions Entity Clone module (though i personally cannot think of a use case where i would want those primary rather than kebab, but the point is site builders know their use cases and should be able to control this)
  • Workflow Buttons β†’ should generally be outside the kebab (but already has to look for Gin specially ✨ Add actions to sticky header if using gin theme Fixed to work with Gin at all, so may not be applicable for this sort of API).
  • Any module that adds additional buttons or any content workflow that has non-standard priorities for different buttons.

Proposed resolution

Ideally there would be a common Drupal "primary/secondary" way to tag buttons that themes including Gin could use to display differently, put in the "more actions" Kebab menu, etc.

But anyhow Gin's way of doing this needs to be documented and exposed to modules and ultimately sitebuilders to choose.

I would be happy to maintain a contrib module that uses an API (or form alter) to allow site builders to choose which buttons are in the kebab menu or out of it, but first that API (or form alter) approach needs to be documented (and maybe exist first, but πŸ› Cannot opt out buttons using #gin_action_item = TRUE Active indicates it at least used to).

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

4.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

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

Comments & Activities

Production build 0.71.5 2024