Questions tagged [keystonejs]
742 questions
15
votes
2 answers
iterate over an array of objects in jade/pugjs
I have the following json object:
var partners =[{ "name":"partnerx", "image": "imagex" }, { "name": "partnery", "image": "imagey" }]
I want to put into a ul object using jade and I tried:
ul#slides.swiper-wrapper
mixin partners(name, image)
…

hopper
- 4,230
- 8
- 36
- 49
13
votes
3 answers
What are the key differences between KeystoneJS and Strapi as tools to create CMS-driven apps?
I'm leaning towards the idea that I'd use Keystone (as-is) for a standard, server-driven multi-page app and strapi when i want to stick Vue/React/Angular on the front-end for a SPA? Since it has a template/view already baked in, Keystone might be…

Charles Thomas Ingles
- 1,629
- 2
- 12
- 14
12
votes
3 answers
Express/NodeJS + Mongoose App server response slow
Issue
I have an Express (Node.JS) + MongoDB app with a server response load time of 4 - 7 seconds on average (slow).
I understand that the average server response time is under 200ms as per google pagespeed tools.
This app is fetching data from a…

clodal
- 1,615
- 20
- 33
12
votes
2 answers
How to create unique keys in KeystoneJS
I'm working on a site built in KeystoneJS that allows users to post words and get suggested synonyms from other users. Words are submitted as part of a phrase or sentence, like "The cat was [perilously] close to knocking over the glass."
My Sentence…

Chris Wilson
- 6,599
- 8
- 35
- 71
11
votes
1 answer
Migration of Small Parse IDs to normal MongoDB's ObjectIDs
I am using Parse Dashboard for User Management of my iOS Application.Also, I am using external APIs which are using MongoDB database.
The issue currently I am facing is the User created from Parse Dashboard is having small id instead of MongoDB's…

Aditya Raval
- 590
- 4
- 20
9
votes
2 answers
pugjs (jade template) - remove newlines in block statement
I'm having a hard time removing the newline between elements in an each statement in a pug js template (formerly jade)
My code looks like this. I'd like to have no whitespace between the li elements when the HTML is rendered, so I'm attempting to…

Ivan G.
- 700
- 8
- 19
8
votes
2 answers
How to use .env file variable in .js file other than Keystone.js?
We are using keystone frame work in one of our project and i am trying to use .env file variable to one of my .js file to connect with http site.I have used dotenv and called process.env.xxyz where xxyz is the variable we are using.Please let me…

jugal
- 341
- 1
- 3
- 17
8
votes
2 answers
Redirect keystone app to sub directory using htaccess
I am new in htaccess. I am using Keystone.js, using which I developed a blog which is listening on port 3000. Like this:
https://localhost:3000
Everything is fine now. But what I want is that my blog should run on this url…

Irtiza shahid
- 359
- 2
- 13
8
votes
3 answers
Invalid Cloudinary Configuration
I'm new to keystone and am trying to deploy a simple website template to familiarise myself with the technology, I have downloaded all the necassary modules and created a keystone.js file and package.json file with all the dependencies. However,…

denisq91
- 155
- 1
- 10
8
votes
1 answer
How do I unit test keystonejs models?
Is there any way to run tests for keystonejs that also hit a test or real mongodb instance?
It would be nice if similar to the way Django does it.

endre
- 1,363
- 1
- 11
- 22
8
votes
1 answer
How to add virtual property of type Array using Keystone.js?
This is my code for my model: 'Info' and its the tokens property that creates the problem.
var keystone = require('keystone'),
Types = keystone.Field.Types;
var Info = new keystone.List('Info');
Info.add({
title: { type: String, required:…

bobmoff
- 2,415
- 3
- 25
- 32
7
votes
1 answer
How to use a custom template in Keystone.js using React?
Tried spending some time researching this but the docs on keystone.js are a little light on this. Googling leads me to some github discussions on implementing React in core Keystone and creating an option in the generator but that work doesn't seem…

o_O
- 5,527
- 12
- 52
- 90
7
votes
1 answer
Is there a way to hide the ID column in Keystone.js?
I'm having troubles trying to hide the ID column, auto-generated by Keystone List template. Is there a way to suppress this column?
The documentation is pretty scant covering only basic usage of the framework.

Cristi Potlog
- 313
- 1
- 16
7
votes
2 answers
KeystoneJS relationship type, limit available items by field value
Is it possible to limit available displayed options in a relationship type of KeystoneJS by specifying a value condition?
Basically, a model has two sets of array fields, instead of letting the admin user select any item from the field, I would like…

code_burgar
- 12,025
- 4
- 35
- 53
7
votes
1 answer
How can I create the array of strings in Keystone.js Database ODM?
How can I create the array of strings in Keystone.js Database ODM? I have to create new model with single field and make a many:true relationship with him only?

Tolsi
- 656
- 9
- 20