Search code examples
node.jsmodelkeystonejs

KeystoneJS plural option not working in AdminUI


Even if i set the plural option in the list when defining the model, in the Admin UI it does not show up, it keeps showing the default trailing 's'.

my model:

var keystone = require('keystone');
var Types = keystone.Field.Types;

var Pollo = new keystone.List('Pollo', {
    map:{ name: 'nome',},
    autokey:{path:'slug', from: 'nome', unique: true},
    plural: 'polli'
});

so in the Admin UI i see "pollos" instead of "polli"


Solution

  • In your keystone.List('Pollo', { ... }) options, you need to also add label and singular options in addition to plural.