Questions tagged [keystonejs]
742 questions
2
votes
1 answer
Testing Keystone and Mongoose with Jest
I am implementing unit testing in a project with Keystone but it always throws an error at testing:
an all test suites.
/Project/node_modules/mongodb/lib/mongo_client.js:433
throw err
^
TypeError: require(...) is not a function
at…

solracid
- 413
- 5
- 21
2
votes
1 answer
Can I see relationships in the list view in KeystoneJS?
In my KeystoneJS (v4) setup I have the following lists:
Stores
Product Categories
Tags
The stores can have categories associated with them.
If I open up a category I can see it's Relationships (stores that use a certain category).
But, is it…

Leopold Kristjansson
- 2,246
- 28
- 47
2
votes
0 answers
Filter Keystone posts by Published date
I would like my KeystoneJS blog to only display Posts with a Published Date equal or more ancient to Today. I guess that happens in the filter setting there :
view.on('init', function (next) {
var q = keystone.list('Post').paginate({
…

BLGV 75
- 21
- 2
2
votes
1 answer
Force Cloudinary URLs to use HTTPS
I am trying to figure out how to force Cloudinary to use HTTPS in Keystone.
Tried using {{cloudinaryUrl image width=500 height=500 crop=‘fill’ secure=‘true’}} in the actual post.hbs page but no luck.
I've seen mention of this but cannot figure out…

ControlZ
- 185
- 2
- 16
2
votes
1 answer
Routing requests using cloudflare to different web applications
I currently have two web apps that are set up in cloudflare with the following CNAMEs. Both are keystonejs applications.
app1.example.com ===pointing to ===> AWS ALB 1
app2.example.com ===pointing to ===> AWS ALB 2
I have Cloudflare Enterprise set…

dwardu
- 573
- 6
- 22
2
votes
0 answers
KeystoneJS: How to filter relationship, base on another relationship?
Model code:
const Item = new keystone.List('Item')
Item.add({
name: { type: String, initial: true },
channel: { type: Types.Relationship, ref: 'Channel', initial: true },
program: { type: Types.Relationship, ref: 'Program', initial: true,…

acmoune
- 2,981
- 3
- 24
- 41
2
votes
1 answer
KeystoneJS plural option not working in AdminUI
Even if i set the plural option in the list when defining the model,
in the Admin UI it does not show up, it keeps showing the default trailing 's'.
my model:
var keystone = require('keystone');
var Types = keystone.Field.Types;
var Pollo = new…

Romeo
- 1,135
- 13
- 26
2
votes
1 answer
KeystoneJS dependsOn not saving its new value when disappear
User.add({
name: { type: Types.Name, required: true },
userid: { type: Types.Text, initial: true, required: true },
exceed_login_attempt: {
type: Types.Boolean,
default: false,
label: 'Exceeded Invalid Login…

Juls1029
- 149
- 1
- 5
2
votes
0 answers
Mongoose hangs on find() query
I'm developing the backend for a website. The main app uses KeystoneJS to provide an admin UI for those who create content, and Keystone runs on top of MongoDB (specifically mongoose). The content is served to a main website and mobile app, and so…

ianbrault
- 31
- 4
2
votes
0 answers
jQuery AJAX post failing only in Safari (request body data not posting)
I've built an upload feature that converts a

Yawner
- 93
- 2
- 10
2
votes
2 answers
Using mongoose full text search with KeystoneJS paginate
I have full text search returning results from a Keystone model. The problem is that I am generating these results using model.find(). I want to paginate these results, but I can't find a way to use $text with .paginate(). Is there a way to…

ttyelud
- 45
- 1
- 4
2
votes
2 answers
how can I pass parameters from Express route to Node middleware
I couldn't find an answer in the docs, and I'm hoping there's a way to do what I need. I have some express routes:
app.post( '/submit-agency-event' , eventService.submitEvent );
app.post( '/submit-question' ,…

autoboxer
- 1,358
- 1
- 16
- 37
2
votes
1 answer
Using an old version of node in VS Code debugger
I updated VS Code to 1.14.2 and am attempting to run an application that requires Node 6.x. Prior to this update, the configuration I was using worked just fine:
{
"version": "0.2.0",
"configurations": [
{
"type":…

autoboxer
- 1,358
- 1
- 16
- 37
2
votes
1 answer
Event on Keystone JS view not working
I'm doing an e-commerce site (learning purposes) with KeystoneJS. In the view where I display all the products I want to add a filter for sort the items by price and another one to show the products of only one brand. Two forms are needed but I…

David Daza
- 145
- 8
2
votes
0 answers
Keystone CMS Rest API authentication
So i am new comer to keystone CMS and its looking awesome to me
i have setup the basic structure and using a default blog project provided by keystone so now i am trying to build the rest API for my admin
As the rest API working fine when i am…

Nirmal
- 939
- 10
- 24