Comments (21)
bro the docu is so bad about this... i am a big fan of directus but this stuff is really not fair to configure... actually so simple but if you dont know you dont know...
happy we are a bit a head now! All the best and thanks for reaching out and you did help us!
from directus.
I know, the docs are behind the latest version in many places. But i can imagine it's really hard for the guys to keep the docs up to date along with all the issues. I did a docs PR for the added templates volume in the example docker-compose file, and it was merged in. Hoping to find time to do more docs PRs
from directus.
good job mate! your are right
from directus.
hmm, i have forked the directus repo to try to reproduce the issue and I haven't succeeded, ie template being targetted fine.
But I wish I knew why it was happening in my project
from directus.
ah! I figured it out. Now that the templates directory is not inside the extensions directory, it will need it's own docker volume ... facepalm ;)
Should this be added to the docs ? Will do a pull request.
from directus.
dude how did you solve it? we have the same issue. Cant read access the custom-template.liquid
from directus.
we tried ./templates and extensions/templates and restart the docker
from directus.
hey! in your docker-compose.yml, your directus container must have this ( ie add the templates volume):
volumes:
- ./extensions:/directus/extensions
- ./templates:/directus/templates
from directus.
big thanks for your reply! And you added the folder templates yourself and created a base.liquid etc?
from directus.
pleasure! yes i did
from directus.
can you send me a structure of your base.liquid?
from directus.
look this is my structure for the folders
still not working
from directus.
from directus.
from directus.
thats my followup.template.liquid file... and it wont find or access this one. I have no idea anymore...
from directus.
i get this error
"name": "DirectusError",
"extensions": {
"reason": "Template "followup-template" doesn't exist"
},
"code": "INVALID_PAYLOAD",
"status": 400
from directus.
hmm... you have rebuilt the docker-compose?
from directus.
I'm not useing a base template, but thats not relevant really. Are you on the latest version? 10.11.0?
from directus.
yes we did we found the error now!
we also have to add this to the docker compose.yml
from directus.
working now!
from directus.
AH yes, forgot about that, although i would have thought it would default . Anyhow... Cool man glad its working. Always good to know I'm not the only one tearing my hair out about these things lol
from directus.
Related Issues (20)
- [SDK] Custom Storage configuration sometimes causes errors
- Permission inconsitency HOT 1
- Permissions error when using pg_restore HOT 5
- Environment variables: AUTH_<PROVIDER>_FIRST_NAME_KEY and AUTH_<PROVIDER>_LAST_NAME_KEY do not work HOT 2
- ERRNO 1 : SQLITE error when trying to crop or edit an image. HOT 1
- ROUTE_NOT_FOUND - Verify a Registration HOT 4
- Cannot load extension bundle on windows after updating Directus from 10.8.3 to 10.11.1 HOT 2
- Implement `meta` support in the SDK
- TypeError : Invalid URL, when loading directus bundle extension in directus version 10.11.2 on windows HOT 5
- Setting a preset for all users isn't working properly.
- Upload file via API returns 204 and empty body
- M2M uses wrong relation if two M2M relations use the same junction table
- Unable to Promote Version HOT 2
- Showing a nice structured JSON in "Log to Console" Logs HOT 1
- Throw errors when present from sdk
- How to create or delete user by only admin approval HOT 1
- why I am use .with(staticToken('staticToken')) tip Invalid user credentials HOT 3
- Manual sorting in M2M interface table layout is not obvious HOT 2
- Graphql errors getting swallowed by the SDK
- Applying a schema does not seem to invalidate the schema cache HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directus.