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
3
votes
2 answers

Unable to access user token in Directus

I am trying to get directus user token. For this purpose I am using Postman. But when I send a POST request to the api with user login credentials. I get this error: We're sorry but Directus doesn't work without JavaScript enabled. Please enable it…
Awais Khalid
  • 86
  • 1
  • 8
3
votes
2 answers

Directus - Example hook for creating or update an item in another collection

I'm building a mobile app that has a list view which displays links to articles. The app's content is powered by Directus. The list view has title description (200 characters, no HTML) image An article has title content (html) image To save the…
neville
  • 474
  • 6
  • 8
3
votes
0 answers

Custom authentication for Directus CMS application

I need to authenticate users using my own database instead of creating users in directus database. There is no sample code for SSO. Can anybody give a sample code on how to implement SSO with Directus CMS.
kumar
  • 31
  • 2
3
votes
2 answers

Database Schema for Recipe/Ingredient/Measurement/Amount

I'm creating a recipe app to help my wife with her cake hobby. The idea is to create a recipe database to hold all of her cake recipes. Each recipe would have multiple ingredients. Each ingredient would have a measurement (gm, ml, teaspoons etc) and…
4ndyG
  • 73
  • 1
  • 9
2
votes
0 answers

Retrieving data from directus extension with React

Recently I'm building a directus module extension with React. One of the functions of my extension is to retrieve directus items from DB. I tried using axios to get data but it didn't work out(it worked out using Postman). Is there other ways to…
Yun C
  • 21
  • 1
2
votes
0 answers

knex: how to rename many existing tables in Directus 10?

I installed Directus 10 over an existing (TYPO3) projet and want to rename tables now. To do so, the Directus docs recommend to create a migration, which I did. There is a helper file with a constant that holds an array of the old and the new table…
Robert Wildling
  • 1,014
  • 12
  • 29
2
votes
0 answers

Directus 10 - Autostart Node

I am having a hard time finding the location of start.js in the new Directus 10 folder structure. I want to locate start.js which was earlier in Directus 9 located at node_modules/directus/dist/start.js I want to autostart or keep alive Directus 10…
2
votes
1 answer

NUXT3 How to display markdown content as html tags?

I am trying to display my markdown content from REST API to my NUXT3 application. I can get raw data with this

{{ Services.data.Test[0].Title}}

{{…

Mayanktaker
  • 175
  • 5
  • 14
2
votes
0 answers

Upgrading Directus on a server using Docker Compose and managing database compatibility

I recently set up Directus on my server using the Docker Compose method described in the Docker Guide. I have also installed a security plugin to check for potential issues with my images. Currently, the Postgis [13-master] and redis:6 versions have…
Sana Dev
  • 21
  • 1
2
votes
1 answer

How to give validation to a date time field in Directus

I have a DateTime field in my table named as "scheduled_at". I want give validation to this date time field where the value should be greater that or equal to now. I have tried applying filters to this field with values 'scheduled_at' Greater than…
Suthesh M
  • 21
  • 2
2
votes
1 answer

How to filter queries with the Directus module in nuxt3

I'm building a small app with nuxt3 and the Directus module. In my Directus project I have a collection called "Prestations" with a field called "active". In my app, I want to query all the items from this collection where active === true. I use…
Posoroko
  • 189
  • 1
  • 2
  • 11
2
votes
1 answer

Multiple Database Connection on Directus

Can we connect to multiple databases on directus simultaneously? I wanted to connect postgres, SQL and aws at the same time on Directus
2
votes
1 answer

How to mutate via GraphQL special characters and HTML with JavaScript?

I'm fetching emails from IMAP and want to store them in PostgreSQL via Hasura GraphQL API. As HTML and special characters can't be in the valid GraphQL query, I need to get rid of them. Remove or replace with something acceptable. That ends up with…
2
votes
1 answer

Directus filtering with OR operator in the REST URL

I have the following url /items/bus_stops_bus_drivers?filter[bus_drivers_id][_eq]=2&filter[bus_stops_id][_eq]=3 I use & to connect two filters with an AND. What character should I use for OR operator?
Petar Yakov
  • 169
  • 2
  • 14
2
votes
1 answer

Is there any guide for Directus 9 file storage adaptor for AWS S3 connections?

I am trying to connect AWS S3 for file storage of Directus 9. Could not find any information on how to edit .env file to do so. Following is my file storage settings in…