Questions tagged [keystonejs]

742 questions
0
votes
1 answer

Cant Install KeystoneJS on AWS EC2 - Errors Out

I have an EC2 instance that successfully has node and mongo installed on it (I've tested both). I'm trying to install KeystoneJS now, but it's throwing errors. Not really sure where I'm going wrong here. Everything works fine locally, I'm assuming…
itsclarke
  • 8,622
  • 6
  • 33
  • 50
0
votes
2 answers

keystonejs cloudinary invalid signature error

I have implemented a Cloudinary type in one of my models, but get this error back when I try and save it to Cloudinary: Image upload failed - Invalid Signature ea4401c2ebf292208d28f9dc88c5ff1c4e73761d. String to sign -…
Jim Bob
  • 1
  • 1
0
votes
1 answer

Keystonejs load list's content on every page

Is there an efficient way to load a Keystone's list's content on every page instead of calling it separately in each view? Perhaps in middlewear.js? The goal is to make a drop down for the nav.
Quinn Keaveney
  • 1,248
  • 1
  • 17
  • 39
0
votes
1 answer

Cannot create items in database of keystone.js

I created a keystone.js folder using Yeoman. In file keystone.js, I add a some code right before keystone.start() to add an new item and list all current items like this: var newPost = new Post.model({ title: 'New…
Mr Cold
  • 1,565
  • 2
  • 19
  • 29
0
votes
1 answer

Keystone JS: S3 image uploads being auto-renamed with temporary string

I'm pretty new to Keystone as I recently inherited a codebase on a project that used it. We were locked into version 0.2.42 so I just updated to the latest, version 0.3.12 and now I'm having a strange issue. All our models with images use S3 for…
budkin
  • 347
  • 3
  • 11
0
votes
1 answer

KeystoneJS: Process.env?

I want environmental exclusive configs. I see process.env is referred to often, but I have not seen it documented anywhere where these values should be but. I saw a .env file in my project folder and I tried putting a value there foo=bar right…
Glstunna
  • 1,993
  • 3
  • 18
  • 27
0
votes
0 answers

Generate Keystone List Name Programmatically

How would I go about generating a keystone list name programmatically? I'm looking for something like this... var Font = new keystone.List('Font', { // ↓↓↓ LOOK ↓↓↓ HERE ↓↓↓ map: { name: 'typefaceName + weightName' }, track: true, …
Quinn Keaveney
  • 1,248
  • 1
  • 17
  • 39
0
votes
1 answer

keystone drop the database when used with child process

Here is my problem. When I use the following code in my program: var spawn = require ('child_process').spawn; ... var child = spawn ('node', ['my_program2', '...'], {stdio : ['ipc', fd_out, fd_err]}); my database is dropped. The father program and…
0
votes
1 answer

Keystone, feature galleries on home page

I used yo keystone to generate a keystone webpage and basically what I want is to sort of feature galleries on the homepage. I added the line view.query('galleries', keystone.list('Gallery').model.find().sort('sortOrder')); to my index.js file in…
Angie
  • 103
  • 1
  • 9
0
votes
0 answers

Path is missing in KeystoneJS

In the Keystone Admin, I modified the Post.js by adding an input field category. But when creating a new post, it throw an error like below. There was an error creating the new Post: Path category is required. Any idea what the the Path it refers…
Hao
  • 1,476
  • 3
  • 15
  • 20
0
votes
1 answer

MongoDB Content Management Web App for the non-technical

When the non-technical people in my team want add some data into the database (MongoDB), they call me to import data with mongoimport. While they should do these things by themselves. So I am looking for a web application that guys without mongodb…
Leo
  • 1,710
  • 2
  • 26
  • 29
0
votes
0 answers

Display first post from query

From this query: var q = keystone.list('Post').paginate({ page: req.query.page || 1, perPage: 10, maxPages: 10 }) .where('state', 'published') .sort('-publishedDate') …
Bomber
  • 10,195
  • 24
  • 90
  • 167
0
votes
1 answer

Issues Integrating ACE Editor with Keystonejs App

It says here(http://ace.c9.io/#nav=embedding) just copy one of src* subdirectories somewhere into your project I have put it in mykeystoneapp/public/js(my default home is mykeystoneapp/public) Here are the errors I get: 1.Uncaught TypeError:…
ishandutta2007
  • 16,676
  • 16
  • 93
  • 129
0
votes
1 answer

Resize images in keystone admin UI

I am new to keystone. I want to resize images in admin UI. I am using CloudinaryImage for this. Here's my code keystone.js require('dotenv').load(); var utils = require('keystone-utils'); // Require keystone var keystone = require('keystone'), …
Sonia Bhatia
  • 146
  • 16
0
votes
2 answers

Sorting data in keystone.js

I am new to keystone.js. I have a data in this format: { _id: 5551823e7771fc3f0decb03e, slug: 'marketing-manager', title: 'marketing manager', __v: 0, description: '

marketing stuff

', location: 'London', …
Sonia Bhatia
  • 146
  • 16