payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
23.58k stars 1.5k forks source link

Impossible to override plugin-search collection labels #7771

Closed BohdanK-W32 closed 1 month ago

BohdanK-W32 commented 1 month ago

Link to reproduction

No response

Payload Version

3.0.0-bea.86

Node Version

20.12

Next.js Version

15.0.0

Describe the Bug

For now, it's impossible to override search collection labels (without overriding the return value of searchPlugin(...)). It's need to work out of the box

image

Link to line in the plugin config generation: https://github.com/payloadcms/payload/blob/3a91deb0a4fde9550cfa9b6eeeedfc5062598da3/packages/plugin-search/src/Search/index.ts#L47

Lines of code need to be placed on top of the config (before user overrides): https://github.com/payloadcms/payload/blob/3a91deb0a4fde9550cfa9b6eeeedfc5062598da3/packages/plugin-search/src/Search/index.ts#L70

Reproduction Steps

  1. Create blank payload project
  2. Install @payloadcms/plugin-seo
  3. Try to override labels with your own

Adapters and Plugins

plugin-search

paulpopus commented 1 month ago

Will be fixed in https://github.com/payloadcms/payload/pull/7775

github-actions[bot] commented 3 weeks ago

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.