Questions tagged [keystonejs]

742 questions
0
votes
0 answers

How to enable KeystoneJS editor for logged in Users?

Is it possible to enable the KeystoneJS editor also for logged in users? Just changing the check in the generator-keystone default layout from if user && user.canAccessKeystone to if user is not enough. I also added the wysiwyg class to the…
0
votes
1 answer

Adding fields in KeystoneJS

there is any way to add new fields like tags or list of strings for each post? I want to make something with more filters. There is any tutorial on how to post and read in DB? This Jade is so weird for me.
Flap Jack
  • 97
  • 1
  • 14
0
votes
2 answers

Starting KeystoneJS fail

I try to set up my first project using KeystoneJS but when I try to use "node keystone" I receive the following error. Can anyone explain to me why is that? Mongo Error: [Error: failed to connect to…
Flap Jack
  • 97
  • 1
  • 14
0
votes
2 answers

Openshift - missing modules when deploying Keystone.JS

I'm trying to install keystone.js, but keep getting missing module errors, can any one please help? I have updated my package.json to include cloud-env dependancies, but still no joy. There's very little documentation available for deploying KS to…
Bomber
  • 10,195
  • 24
  • 90
  • 167
0
votes
1 answer

When adding a .post() event listener to a Keystone model the isNew property always returns false

I'm trying to hook into the first save event when creating a new document. Looks like this. User.schema.post('save', function (doc) { console.log('The user is new? ', doc.isNew); }); However even when I create a new user via the Keystone…
Askdesigners
  • 419
  • 5
  • 15
0
votes
0 answers

Error setting TTL index on collection

I'm getting the following issue using KeystoneJs v3. Hosted on Azure, with a MongoLab hosting the database. I don't get this error whilst accessing the db via KeystoneJs on localhost I'm pretty fresh to KeystoneJs, node and mongo, so apologies if…
MrBliz
  • 5,830
  • 15
  • 57
  • 81
0
votes
3 answers

Installing KeystoneJS Error

Getting this error when trying to install KeystoneJS on DigitalOcean MEAN stack. Getting this error: http://paste.ee/p/q1RmU Using this command: sudo yo keystone (installed Yeoman) Following this guide: http://keystonejs.com/getting-started/
Apple Man
  • 13
  • 2
0
votes
0 answers

Keystonejs with Oauth2 has no return

I am using KeystoneJS and wanna insert the oauth2 codes. All my Token and Users codes are run very fine; the methods are triggered via console.log. The token is generated successfully. However, there is no return and finally I receive a timeout in…
Arthur
  • 1
0
votes
1 answer

Keeping KeystoneJS code updated with the main branch after customization

I have a fresh Installation of KeystoneJS nicely deployed to Heroku with the "Deploy to Heroku" button. I also cloned the source into my own git repo. Now I'm ready to make some changes to the code. What I want is to add my customized files rather…
Luky
  • 5,346
  • 4
  • 17
  • 15
0
votes
1 answer

Add fields to Keystone.js Model Class using json file

I wonder if it's possible add fields to a collection, in Keystone.js, using information saved in a json file. I'll show you my problem: instead of Collection.add({ aaa: { type: String, required: false }, bbb: { …
0
votes
1 answer

Calling an external API with a Node application (KeystoneJS)

I'm newer to Node and trying to learn how to modify my Keystone.JS app so it can call data from an API (JSON or XML) and display it in the view that is rendered. The current code in my app is essentially a cloned version of this demo app…
Kevin Dark
  • 2,139
  • 5
  • 22
  • 23
0
votes
1 answer

Remove collection/model

How can we remove a collection registered using keystone register method? I tried to remove the model without success, then I tried manually using node console: But now even if I remove the collection…
Pierre
  • 3
  • 2
0
votes
0 answers

Node Route '/keystone//keystone/categories' in KeystoneJS Admin UI return 404 in OSX

I met this in Node CMS KeystoneJS's admin UI, but I think this does not matter with keystone, looks like the '/' root router can not work properly in my MAC. Here is the message I got: GET /keystone//keystone/categories 404 17ms - 276b GET…
Jennie Ji
  • 769
  • 5
  • 13
0
votes
1 answer

nodejs keystone : stop html entity replacing "<" with "<"

Want to render page sections with html coming from the data base. Using keystone with default jade & mongo. To test in my init (view.on('init', function(next) {) function i have locals.intro = "my introbolder 2"; On my jade template source…
tgkprog
  • 4,493
  • 4
  • 41
  • 70
0
votes
1 answer

Keystone.js Number fieldtype tweak

I'm trying to add an id-like column to my keystone events model. I have the following // models/Event.js var keystone = require('keystone'), Types = keystone.Field.Types; var Event = new keystone.List('Event'); Event.add({ FB_event_id: {…
Harry Moreno
  • 10,231
  • 7
  • 64
  • 116