0
我創建了56個類別,當我試圖創建一個新的職位,當我要選擇我想要的類別只有50個。其他6個出現,而且即使通過鍵入不存在的類別名稱,也無法選擇它們。
我該如何解決這個問題?
這裏是車型顯示超過50個項目在管理用戶選擇
var keystone = require('keystone');
var Types = keystone.Field.Types;
/**
* Post Model
* ==========
*/
var Post = new keystone.List('Post', {
map: { name: 'title' },
autokey: { path: 'slug', from: 'title', unique: true },
});
Post.add({
title: { type: String, required: true },
categories: { type: Types.Relationship, ref: 'PostCategory', many: true},// <- This is Shows only 50 instead of 56!
state: { type: Types.Select, options: 'draft, published, archived', default: 'published', index: true, required: true },
publishedDate: { type: Types.Date, index: true, default: Date.now, required: true, dependsOn: { state: 'published' } },
mainPDF: { type: Types.LocalFile, dest: 'public/pdf/mainpdf'},
pronunciations: { type: Types.LocalFile, dest: 'public/pdf/pronunciations'},
answers: { type: Types.LocalFile, dest: 'public/pdf/answers' },
}}
});
Post.schema.virtual('content.full').get(function() {
return this.content.extended || this.content.brief;
});
Post.defaultColumns = 'title,categories|20%, publishedDate|20%';
Post.register();
好吧,當我評論線路崩潰,但我改變了限制爲100現在它的罰款thnx的幫助 – Bill