Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Change admin menu labels

default discord avatar
akacronos2 years ago
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
  • default discord avatar
    jessrynkar2 years ago

    Hey

    @706208036439588934

    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
    akacronos2 years ago

    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
  • discord user avatar
    jarrod_not_jared
    2 years ago

    Correct ⬆️

  • default discord avatar
    aksara0001last year

    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 dedicated engineering support directly from the Payload team.