393 questions
0
votes
0
answers
25
views
Next.js <Image> fails with Directus: "url" parameter is not allowed"
I’m using Next.js 16.0.1 and loading images from a Directus /assets/<id> endpoint.
The Directus asset URL works fine in the browser: https://<directus-domain>/assets/<id>
But when ...
0
votes
0
answers
91
views
Directus custom layout extension
I'm using Directus 11.7.2
and trying to run the simple layout extension from the documentation
https://docs.directus.io/guides/extensions/layouts-getting-started.html
index.js:
import { toRefs } from '...
1
vote
0
answers
97
views
Directus Flow: modifiedPayload is accessible in Run Script but undefined in subsequent operations
I’m working on a Directus flow where I’m using a Run Script operation to add a modifiedPayload object to the data object. The modifiedPayload is successfully created and logged in the Run Script, but ...
1
vote
1
answer
189
views
Nuxt3 data fetching from Directus
Nuxt Noob here. I want to create a Site that uses Directus as backend.
I followed tutorials about fetching data in Nuxt and using the Directus SDK.
On initial page load, everything seems fine and data ...
1
vote
0
answers
57
views
linkedin Oauth2 not working with directus
I'm trying to integrate LinkedIn OAuth with Directus, but I keep running into an issue when the authentication callback happens.
Does Directus Support LinkedIn OAuth?
From what I've found, Directus ...
1
vote
0
answers
55
views
How to match / show translation strings values for custom interface translation placeholders
Some existing extensions use the $t:-placeholders for field properties like name, description, text (see defineInterface → options).
When I import / activate my extension in the data studio, with the ...
1
vote
1
answer
813
views
Deep filtering nested relations Directus
How do I use deep in nested relations?
deep: {
translations: { _filter: { languages_code: 'nl-NL' } },
variants: { _filter: { translations: { languages_code: 'nl-NL' } } }, // This does not ...
-2
votes
1
answer
476
views
How to query fields in Directus Flows Read Data?
I have this "Read Data" in Directus Flows. I want to get result from this field: product_carts.products_cart_id. I know how to execute it from postman with /product_carts.products_cart_id. ...
1
vote
1
answer
590
views
How to determine variables in Directus Flows
I'm stuck at determine variables on directus flows.
I know there is {{$trigger.payload.field}} and it works. But I need read data from other collection so called it tablex. So I use operation "...
2
votes
1
answer
60
views
Output items of collection as HTML in Directus
I'm new to Directus. How do I add a loop for all items of a collection here?
// Define a function 'e'
var e = (router) => {
// Create a GET route for the URL "/"
router.get("...
1
vote
0
answers
477
views
Nuxt 3 + Directus returns CORS error when navigating the site
I have searched, and searched, and searched... for an answer to this problem. I just can't figure out the solution.
The problem I'm having concerns a project with Nuxt 3 as frontend, and Directus (CMS)...
2
votes
1
answer
822
views
How to set Directus with Keycloak SSO Config?
I'm new to directus, but after watching youtube about directus, I think directus what i need to support my backend development.
I already setup selfhost, succeed login with my admin auth. Now, I want ...
1
vote
1
answer
196
views
Unable to consume Directus API endpoint from React using Axios
I created an API endpoint using Directus to store some data.
https://comfy-store.directus.app/items/products
I verified this endpoint was working using POSTMAN.
I then created a React app using Vite ...
1
vote
0
answers
306
views
Directus new sdk - refresh token missing
I am using the new SDK to authenticate against directus within a svelte app.
I am trying to use the composable client.
For both login and logout, I set up the directus instance within a help function, ...
1
vote
1
answer
1k
views
Forbidden access error: following Directus SDK tutorial
I'm having trouble learning Directus SDK - loosely following: https://docs.directus.io/blog/building-a-personal-travel-journal-with-vue-js-and-directus.html#creating-a-journal-and-users-collection
...
3
votes
0
answers
483
views
"import.meta" is not available in the configured target environment
Getting this error:
"import.meta" is not available in the configured target environment ("es2017") and will be empty [empty-import-meta]
I have developed extension in directus ...
1
vote
0
answers
316
views
Directus all API endpoints are returning 404 error
I have uploaded my directus code into the ssh server.
But none of my APIs endpoint whether POST or GET is working, all returning 404 errors.
However I can see all content, all items, can login etc.
I ...
0
votes
1
answer
158
views
Directus is not connecting with mysql over SSH server
I can't connect my directus project with mysql server.
Getting connection refused error.
However when I'm running this command, I'm able to connect: mysql -u root -p -h localhost -P 3306
My docker-...
2
votes
1
answer
563
views
Fail to write Database and folder in Directus
I'm trying to setup Directus correctly and having issues with the database file and uploads folder. I can't write to both of them. The setup is pretty straight forward, fresh installed server, Docker ...
1
vote
1
answer
211
views
Recursive Directus.io readItems
I have an navigation structure in Directus.io which consists of two collections.
navigations
id
title
navigation_items (One-to-many)
navigation_items
id
title
navigation (Many-to-one)
parent (Many-...
1
vote
0
answers
126
views
Directus - decrypt Static Token in NextJS
I´m using the static Token for authenticated Queries. With logging in i want to save the Static Token within the session, but I can´t find a way to decrypt the Token. I´m saving the Token in the ...
1
vote
0
answers
219
views
Directus: Flow to update more than one record returns error
The flow i created to update in this case 2 records returns error.
It does not make any sense because apparently all is correct .
Any help?
1
vote
0
answers
153
views
Directus : datetime validation forcing End Date to be greater than Start Date field
I have a form in Directus to reserve a company car.
The user has to enter Start date ( called Inicio) and End Date (called Fim)
The form must grant that End Date(Fim) is greater than Start Date(Inicio)...
1
vote
1
answer
203
views
How can I make changes to a collection in a custom endpoint that is called without proper permissions?
I have an endpoint that is publicly available (accessed by a webpage). Now, I would like to be able to update a certain field of the requested item without having to give the public user overall "...
1
vote
0
answers
110
views
Use the flow of directus to update field A into the splicing of field B and field C
When I want to create and update a record of [customization], [identifier]=[model_name]+[customization_version]+[fw_version]+[hw_version], how should I do it? The required input is a json, so I am not ...