Change admin menu labels

default discord avatar
akacronoslast year
4

Hi! is there a way to change the auto label for the main nav in the admin? The admin uses the slug of a collection as the text, can I change it manually?



// Collection File Media.js
const Activities = {
  slug: 'activitiesPage',
  ...
}


In the example, the admin sets the admin text link to

Activities Page

, I want to use

Página de actividades
  • discord user avatar
    jesschow
    last year

    Hey @akacronos yes you can set custom collection labels like this:



    const Activities = {
      slug: 'activitiesPage',
        labels: {
          singular: 'Página de actividades',
          plural: 'Páginas de actividades',
      },
    }
  • default discord avatar
    akacronoslast year

    For some reason, de labels prop don't do anything, but I use label and works! Thanks!



      slug: 'homePage',
      label: 'Página de inicio',


    For collections needs

    labels

    but for globals wokrs with

    label
  • Correct ⬆️

  • default discord avatar
    aksara10 months ago

    Hello, I know its a simple thing, but how do I change the label and add a new collections?

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.