Questions tagged [directus]

Questions regarding development with directus CMS. Note: questions must be programming questions.

Directus is a free and open-source database API and 'headless' CMS. Unlike traditional CMS that encompass your entire project codebase, the decoupled approach of Directus offers an API and SDKs to connect your content to

Directus is built with

Backbone.js, Underscore, Require.js, Zend DB, Slim, Handlebars, jQuery, Moment.js, Sortable.js, Noty, and SASS.

311 questions
2
votes
1 answer

SSO authorization in Directus using the keycloak provider

Good afternoon, how can I set up sso authorization from keycloak in my directus application? Below I will give the settings for my directus image. And the error that occurs when trying to log into the account.
2
votes
1 answer

Can't Create Item When Table Has Data

I have a problem where if my table is empty, I can create new items with Directus. But, if the table has data already I get the error ID: Value has to be unique. I'm using auto increment for my ID's. Any ideas what I've done wrong?
Darryl Morley
  • 699
  • 1
  • 7
  • 20
2
votes
2 answers

How to use Directus flows to copy a value from one column to another on creation

In directus I am creating records where one column is a float that contains negative numbers. On creation of a record I would like to copy the absolute value of this column to another column in the same collection automatically. Example: After…
bcsta
  • 1,963
  • 3
  • 22
  • 61
2
votes
2 answers

Directus api create item works but data values are null

Using Directus online (https://projectcode.directus.app install of local or server install). I can successfully create item but data I send is always null. This is happening running my code axios.post( `${endpoint}/items/collection_name`, …
Amanda Lutz
  • 123
  • 8
2
votes
0 answers

directus with the serverless rds is not scaling down

We have setup the directus on fargate and chose the AWS serverless RDS as database When we are not using directus then also the serverless rds is not scaling down to 0. Does any one faced this issue? Thank you
Harika K
  • 31
  • 3
2
votes
1 answer

how to validate input strings with regex patterns in Directus 9

I'm using Directus CMS. This is one of the best CMS I've come to know so far in terms of usability, features, and extensibility and moreover, it is open source and free. The admin dashboard is amazing and responsive. There is one thing I am…
Gaurav
  • 1,668
  • 1
  • 13
  • 30
2
votes
1 answer

How do I write a typeguard for a function that takes an argument that is an intersection of a Partial and object?

I am using the Directus API with Typescript. With Typescript, its API calling functions return partial entities (eg. PartialItem), so I'm diligently checking the existence of required properties before passing the data onward. However, I'm…
Will F
  • 43
  • 4
2
votes
2 answers

Why is systemd service giving an error on start

I have created a new systemd service and keep getting an error when the service is started and Im not sure what could be up. /usr/bin/env: node: No such file or directory systemd[1]: test-panel.service: main process exited, code=exited,…
Adam B
  • 95
  • 11
2
votes
1 answer

"Page not found" after clicking a row, but no error showed up in console

My operation steps: Change a table's PK from column A to column B, where A's directus_fields.special = uuid, and B is also a FK. Drop column A. Remove all records related to column A in Directus meta tables, like directus_fields. Restart…
powerseed
  • 1,090
  • 3
  • 17
  • 29
2
votes
0 answers

How to get Dynamic zones like functionality (strapi) in Directus? They say we can impliment using there newer Many-To-Any

so I'm using directus as my new backend as strapi has gotten buggy over the time and it's slower. Few things I miss from strapi are Dynamic Components/Zone Example- We have 3 components A (title) - B (Image) - C (Markdown) On one page/post I want…
2
votes
2 answers

Webhooks Directus 9 - send an email when user create a record in a table

I created the "mission" collection. I want to send an email to a personalized recipient for each new recording on the mission table. According to the Directus documentation, I saw that this is possible via webHooks. enter link description…
uss-code
  • 51
  • 1
  • 6
2
votes
2 answers

Directus GraphQL Playground or GraphiQL URL

I started to use Directus and am looking for the Playground URL. I have found the GraphQL endpoint xxx.com/graphql?access_token=token. But I could not manage to find the URL for the Playground or GraphiQL. Could anyone help me? Does anyone know if…
NilsMich
  • 21
  • 1
  • 2
2
votes
2 answers

How to pass two values to _between operator?

"You must specify 2 values for the whereBetween clause" BUT how? I am currently using the version: 9.0.0-rc.42 Error message "The filter value for "_between" has to be a string, number, or boolean" filter: { date: { _between:…
Cem Kaan
  • 2,086
  • 1
  • 24
  • 55
2
votes
1 answer

Composer ignoring my local repo package and it tries to download it from remote VCS repo

I am trying to use one of my packages from vendor-legacy folder. Here is the structure of this folder: vendor-legacy └── directus ├── oauth2-okta ├── proxy-detection ├── rate-limit └── zend-db In my composer.json file I declared it…
Eddy
  • 593
  • 8
  • 22
2
votes
4 answers

How to start directus using pm2?

Documentation says: Instead of starting the app using pm2 start hello.js, you can start Directus using pm2 start npm -- start pm2 start npm -- start I have tried pm2 start npm /home/user/my-app/node_modules/.bin/directus…
Cem Kaan
  • 2,086
  • 1
  • 24
  • 55