#Change admin menu labels

5 messages · Page 1 of 1 (latest)

alpine ginkgo
#

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

fervent halo
#

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

const Activities = {
  slug: 'activitiesPage',
    labels: {
      singular: 'Página de actividades',
      plural: 'Páginas de actividades',
  },
}
alpine ginkgo
#

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

random ravine
#

Correct ⬆️