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)
- Relational groupBy not implemented HOT 1
- Ability to expand/collapse all collections in data model HOT 1
- Api: Content version does not return relational data HOT 10
- Query limit with a relational sort will not return the correct amount
- Subtitle Link Undefined HOT 5
- auth/refresh 400 error HOT 7
- _fields within deep Query not working HOT 4
- Date alias fields don't have same return type as plain fields
- Logical operators to filter service data isn't working after upgrade HOT 7
- Item Drawer sets readonly on circular field which is persisted to the original field
- File Library card thumbnails dissapear when adding a relation to itself HOT 2
- Does anyone have turtorial to intergrate AWS X-ray with Directus on ecs fargate? HOT 1
- `module_bar` in settings doesn't take an array. HOT 1
- Issue still persisting
- `module_bar` in settings doesn't really take an array. HOT 1
- `useShortcut` hijacks global shortcuts even if targeted to element HOT 2
- Interface display in editting item mode HOT 1
- Inaccuracy on "Data Model" page HOT 1
- Filtering a collection using comparison operators on String fields results in 400 Bad Request Error HOT 2
- Wrong primaryKey & field values on custom interfaces after upgrading Directus 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.