56 개 카테고리를 만들었으며 내가 원하는 카테고리를 선택할 때 새 게시물을 만들려고 할 때만 50 개가 있습니다. 다른 6 개는 없습니다. 나타나지 않고 존재하지 않는 것과 같은 범주 이름을 입력하여 선택할 수 없습니다.
어떻게 해결할 수 있습니까?
다음은 모델admin ui에서 선택시 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