Skip to content

Conversation

@GeorgS
Copy link

@GeorgS GeorgS commented Nov 20, 2025

What?

Add missing beforeDocumentControls key for custom components in admin.components.elements in globals to importmap generation. Remove editMenuItems from globals custom component docs.

Why?

Adding the custom components does currently not work as stated in the docs (https://payloadcms.com/docs/custom-components/edit-view#globals) as it won't be picked up by payload generate:importmap.

How?

Added missing key to generation. Update docs.

@AlessioGr AlessioGr self-requested a review November 20, 2025 23:28
@AlessioGr AlessioGr self-assigned this Nov 20, 2025
@AlessioGr
Copy link
Member

@GeorgS build is failing

@GeorgS
Copy link
Author

GeorgS commented Nov 21, 2025

@AlessioGr did not realize that editMenuItems is currently not supported for Globals. I've removed it from the importmap generation and updated the docs to reflect the available custom components for Globals.

@GeorgS GeorgS changed the title fix: add missing beforeDocumentControls and editMenuItems custom component keys for globals to importmap generation fix: add missing beforeDocumentControls custom component key for globals to importmap generation Nov 21, 2025
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