Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Jan 12 11:15
    ankitWVS commented #3994
  • Dec 19 2021 00:40
    tomasignacioc commented #3994
  • Nov 24 2021 03:50

    bladey on master

    Update README.md (compare)

  • Nov 24 2021 03:46

    bladey on master

    Update README.md (compare)

  • Nov 22 2021 20:58
    ibrahimjamil commented #4953
  • Nov 03 2021 03:37
    khalwat commented #1566
  • Nov 03 2021 03:12
    khalwat commented #1566
  • Aug 16 2021 23:28
    sonyafung commented #4913
  • Aug 16 2021 23:22
    sonyafung commented #3374
  • Jul 07 2021 02:35

    bladey on master

    Update robots.txt (compare)

  • Jul 07 2021 02:31

    bladey on v0.3-docs

    Update robots.txt (compare)

  • Jul 03 2021 18:11
    huntr-helper opened #5007
  • Jun 30 2021 03:00

    bladey on master

    Add sitemap and robots. (compare)

  • Jun 30 2021 02:51

    bladey on v0.3-docs

    Revert "Update package.json" T… Add sitemap and robots. (compare)

  • Jun 30 2021 02:41

    bladey on v0.3-docs

    Update package.json (compare)

  • May 06 2021 21:57
    ZeeAzmat edited #5006
  • May 06 2021 21:18
    ZeeAzmat commented #5006
  • May 06 2021 21:07
    ZeeAzmat opened #5006
  • Apr 20 2021 09:55
    brunoalfred commented #3994
  • Apr 16 2021 13:49
    timemachine3030 closed #4373
Hello according to keystonejs config you use tinyMCE, and im a bit confused where to enable the additional tinymce options at in keystonejs
i figured it out , nvm.

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?

Brandon Taylor

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?

I'm using Keystone 4 beta 8 and TypeScript btw
Mihajlo Ilijić
Hi. Is there a way to set max dimensions of images uploaded to Cloudinary?
Is it possible to use social login in keystone.js?
Max Ma
@alphamyd check out syd.js project. it has an example for social login
@alsoicode_gitlab I think req.flash doesn't support to do validation check via mongoose
Max Ma
you need to convert the error data and make it ready to consume by flash-messages.pug
Philip Cox
Hello Keystone community. I hope it's okay to throw a question out here, I've just started using KS and I am having trouble getting a custom JS file to run. I am have a file in a dir called pages, inside /public/js/. This is a class that I would like to use JS in and manipulate the DOM. I have placed a src tag inside the JS block as defined in default.html, but I am getting such errors as document is not defined etc. Now I know this is because the document is not yet ready and KS is processing on the server. But is there a way to add custom JS to my pages, please? Thanks so much.
Stephen Steneker
Hello KeystoneJS community! Great to see there are more than 750 interested folks in this channel :). As a Keystone user I'm very keen to help Keystone 4 finally lose the beta label and see some healthy engagement between community & contributors. There's some active discussion starting up on the KeystoneJS Slack, and I'd like to invite anyone interested to join via https://launchpass.com/keystonejs.
One of the current community challenges is too many channels (and not enough answers). For example, there is currently GitHub, Canny (née ProductPains), Gitter, Slack, KeystoneJS Google Group, and probably more. Without getting into extended debate on which tool is best for discussion in the longer term, I'd like to suggest focusing on Slack as a starting point to get the project moving. Join the KeystoneJS Slack and introduce yourself!
Max Ma
Hi All, I am confusing about map option in keystone List, I did not quite understand the offical explanation. 🤕
const Post = new keystone.List('Post', {
    map: { name: 'title' }, // <- what this map use for?
    autokey: { path: 'slug', from: 'title', unique: true },
Mihajlo Ilijić

Hi. Got a quick question: Does Keystone support Mongoose getters and setters? I’m trying to have whitespace trimmed for one of my fields and I can’t get it to work:

I’m trying something like this :point_down:

  trimmedField: {
    type: String,
    set: v => v.trim(),
Chris Steenekamp
Can we change the admin UI with ease yet?
Hi all, I'm having a problem where node keystone doesn't throw any weird errors but also doesn't start running anything on port 3000.
It kind of just sits there until ^C.
Has anyone had a problem like this before?
Deep Vora
Keystone chat has moved to keystonejs.slack.com better ask there
i am stuck on how to assign a specific user to manage a specific model in keystoneJs. only the user can be able to create,update,delete
James Allen

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:

  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
Dmitry Grigorov
Hi guys! How do you usually contribute keystone ? I mean how do you start project in dev mode ?
I just installed keystonejs using Docker-compose on Ubuntu 16. I have apache2 with letsencrypt. I have enabled the ssl. And now when I start the app it shows that my HTTP app is on 3000 and HTTPS is on 3001. But when I go to the domain from browser it shows (!) not properly secured
I tried pointing the ssl.conf files to 3001 ... using
ProxyPass / http://localhost:3001/
ProxyPassReverse / http://localhost:3001/
ProxyPreserveHost On
But it did not work
Here is my keystone.js SSL part:
'ssl': true
'port': 3000,
    'admin path': 'admin',
    'ssl cert': '/etc/letsencrypt/live/domain.com/fullchain.pem',
    'ssl key': '/etc/letsencrypt/live/domain.com/privkey.pem',
    'letsencrypt': (process.env.NODE_ENV === 'production') && {
        email: 'user@gmail.com',
        domains: ['www.domain.com', 'domain.com'],
        register: true,
        tos: true,
Hi. Is there any example on how to use GridFS or simular instead of CloudinaryImage for saving images?
Yashaswi Maharshi
Yashaswi Maharshi
Create an rest api for inserting data from the frondend, the api get hit, but insert the blank field in the db
let data = req.method === 'POST' ? req.body : req.query;
let newEmailSubscriber = new EmailSubscriberList.model();
EmailSubscriberList.updateItem(newEmailSubscriber, req.body, function (err) {
if (err) return res.status(500).json({ error: err });
message: 'Successful',
can someone help me out, what is the issue in it
Yashaswi Maharshi
Thanks I got the solution
Hi everyone
Can someone gelp
I just installed keystone-react
Launched mongod
But keystone do not init
It was suppose to be this issue:
But still not working
Any idea ?
Dan Black
hi there! new to keystone, i'm a little confused about user login. everything in demo seems to be about the admin login... how do i get the user login / account creation stuff up? any good parts of the docs I'm missing? sorry if it's obvious. thanks!
if user li: a(href='/keystone') Admin UI li: a(href='/keystone/signout') Sign Out else li: a(href='/keystone/signin') Sign In
is that how we want users to log in? i am missing something!
Dan Black
i guess so