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
0 answers

Query many to many related data through GraphQL

I want to query my data from Directus through GraphQL. I have to two collections Festival and Artists which are connected through a many to many relation. In the GUI everything works fine but when I try to query the records through GraphQL I'm not…
Cilenco
  • 6,951
  • 17
  • 72
  • 152
3
votes
1 answer

Using NGINX as reverse proxy for running Directus via using docker-compose results into rewrite or internal redirection cycle

Installed Directus using docker-compose as outlined here along with NGINX as proxy File docker-compose.yaml version: "3" networks: directus: services: mysql: image: mysql:5.7 environment: MYSQL_DATABASE: "directus" …
Vic
  • 1,985
  • 1
  • 19
  • 30
3
votes
1 answer

How do I fix Directus error code 3 when downloading stored files

I can store files to the specified storage location via the GUI. I can see the files are in the storage location. When I try to download them using the GUI, I get this every time. {"error":{"code":3,"message":"Unauthorized…
bvwj
  • 41
  • 4
3
votes
1 answer

If a 'many-to-many' field is added to directus_users

Firstly, I love the Directus CMS and I chose to implement it on my new project. So far I am just loving it. Now I have this issue where the user create functionality was added, with email verification etc all was good. Until I added a new o2m field…
Azad Zain
  • 143
  • 11
3
votes
1 answer

Directus - AWS S3 Upload - error message: Cannot set property 'value' of undefined

I just set up directus with s3 storage like this: https://docs.directus.io/extensions/storage-adapters.html#core-adapters It seems to be working: but there is one issue: When I upload an image, it gives me an error: Cannot set property "value" of…
Slowwie
  • 1,146
  • 2
  • 20
  • 36
3
votes
1 answer

Directus many-to-many display template not showing up

I'm not sure where Display Template option is supposed to show up on M2M relationships. Here on movies collection setting up genres: and the options Docs seems confusing about the distinction between Visible Columns and Display Template: Visible…
Mostafa Bahri
  • 2,303
  • 2
  • 19
  • 26
3
votes
1 answer

Get all relationship data in one request with Directus 8 JS SDK

I have the following collections: Movies and Actors. I just want to call client.getItems('Movies') and get the data of all movies with the linked actors data per item also. It seems to me I can only do that, if I call another client.getItems with…
roNn23
  • 1,532
  • 1
  • 15
  • 32
3
votes
3 answers

How do I show a label on a many to many relationship in Directus?

I have added working, many-to-many relationships to a directus api through the directus admin app, but in the directus app when going to add an item to a collection, the label for the select options are not being propagated. I am able to select…
Chris Wray
  • 123
  • 7
3
votes
1 answer

Directus.io vs Laravel voyager

I am looking for a good system where I am able to customize my table with custom fields without / less php development get the data by rest api out of the box membership area (is there a solution for directus.io, voyager, ... ) out-of-the box?…
user9663486
  • 69
  • 1
  • 4
3
votes
1 answer

Where to add files for Directus 8 front-end hello world?

Checking out Directus 8 for my first time and there's something simple I'm just not getting and don't see it in the docs. My directory setup…
3
votes
2 answers

Error "Couldn't reach API" when I try to log in

I install Directus CMS via git clone successful. In the database 15 tables were created. In /config folder my projectkey.php file were created too. After installation I want to login with my credentials and get the error "Couldn't reach API". In…
GoatMachine
  • 127
  • 1
  • 13
3
votes
1 answer

Can you edit static HTML content in Directus like you would in a traditional CMS?

I plan to use Directus as a database wrapper to add some CMS functionalities in my site. I can also use Directus to manage images of my site. However to edit some of the static HTML content, can I also use either Directus or some extensions of it? I…
3
votes
1 answer

Directus API SDK: How to get items with M2M filter

I can't find (even in the docs) the best way to do an API call with M2M, from sdk-js. For example, if I have two collections "articles" and "categories" with an M2M relation. How do I get all the articles from one categorie_id ? I've tried…
Medteck
  • 496
  • 4
  • 12
3
votes
1 answer

Directus interface using vue-datetime

I'm looking at creating my first Directus interface. Has anyone had any success using the vue-datetime picker (https://github.com/mariomka/vue-datetime) as part of a Directus interface? Is there another way to create a Directus date-time picker?
Connie DeCinko
  • 802
  • 2
  • 15
  • 32
3
votes
3 answers

API returns null for files

I'm using Directus for a headless CMS. I have been uploading a file through the Directus App but the API returns null for the file field. How can I fix this issue?
yuku
  • 33
  • 6
1 2
3
20 21