dcousens on point-readme-to-ks6
dcousens on master
Point keystone-classic readme t… don't dance around the wording Merge pull request #5008 from k… (compare)
dcousens on point-readme-to-ks6
don't dance around the wording (compare)
Noviny on point-readme-to-ks6
Point keystone-classic readme t… (compare)
bladey on master
Update README.md (compare)
bladey on master
Update README.md (compare)
bladey on master
Update robots.txt (compare)
Research.add({
title : {type : String, required : true},
state : {type : Types.Select, options : 'Submitted, Ongoing , Completed',default : 'Submitted'},
principalInvestigator : {type : String},
coInvestigator : {type : String},
fundingAgency : {type : String},
sanctionedAmount : {type : Number,note:'lakhs'},
from : {type : Types.Date},
to : {type : Types.Date},
});
I want to add a logo to a keystone project or if logo is not possible, just a simple text. I was able to add the logo only during the login process. I suppose the best place to add the logo is the navigation bar but its not a must.
I tried to changed the home logo <span class="octicon octicon-home"></span> with my logo but was not able to found where.
I tried to add img(src='/images/logo.png', width='160') to templates/layouts/default.pub but I got an error img is a self closing element: <img/> but contains nested content. It's also wrote There is no .container wrapping class around body blocks to allow more flexibility in design
I tried to add an iFrame using javascript and tried to put some html code on it. This also didn't worked.
I also tried to set a label or singular to one page but this is not what I need
Do you have any idea?
Hello everyone. I've added a custom validator to a text field, but the admin UI isn't displaying the message
property of the validator. Instead it displays: "ValidationError: [model name] validation failed". Example:
phone: {
type: Types.Text,
required: [true, 'Phone number is required'],
initial: true,
validate: {
validator: function(value: any) {
return /\d{3}-\d{3}-\d{4}/.test(value);
},
message: '{VALUE} is not a valid phone number',
},
},
What am I doing wrong?
req.flash
doesn't support to do validation check via mongoose
const Post = new keystone.List('Post', {
map: { name: 'title' }, // <- what this map use for?
autokey: { path: 'slug', from: 'title', unique: true },
})
Hi all, its been a while since I've done anything with Keystone and am wanting to update an old 0.3 version app to the latest. I'm having some issues with the new File
storage adapters... previously in my models I had:
Sermon.add({
...
audio: { type: Types.S3File, collapse: true, allowedTypes:['application/mp4', 'application/mp3'] }
which I have moved over to the File adapter, but it is the pre
hook I can't seem to find, nor reference to them being deprecated
Sermon.fields.audio.pre('upload', function(item, file, next) {
now gives me:
TypeError: Sermon.fields.audio.pre is not a function