Giter Club home page Giter Club logo

Comments (21)

PhilipZi avatar PhilipZi commented on June 17, 2024 1

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.

sharkfin009 avatar sharkfin009 commented on June 17, 2024 1

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.

PhilipZi avatar PhilipZi commented on June 17, 2024 1

good job mate! your are right

from directus.

sharkfin009 avatar sharkfin009 commented on June 17, 2024

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.

sharkfin009 avatar sharkfin009 commented on June 17, 2024

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.

PhilipZi avatar PhilipZi commented on June 17, 2024

dude how did you solve it? we have the same issue. Cant read access the custom-template.liquid

from directus.

PhilipZi avatar PhilipZi commented on June 17, 2024

we tried ./templates and extensions/templates and restart the docker

from directus.

sharkfin009 avatar sharkfin009 commented on June 17, 2024

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.

PhilipZi avatar PhilipZi commented on June 17, 2024

big thanks for your reply! And you added the folder templates yourself and created a base.liquid etc?

from directus.

sharkfin009 avatar sharkfin009 commented on June 17, 2024

pleasure! yes i did

from directus.

PhilipZi avatar PhilipZi commented on June 17, 2024

can you send me a structure of your base.liquid?

from directus.

PhilipZi avatar PhilipZi commented on June 17, 2024

Bildschirmfoto 2024-05-15 um 11 29 06
Uploading Bildschirmfoto 2024-05-15 um 11.29.43.png…

look this is my structure for the folders
still not working

from directus.

PhilipZi avatar PhilipZi commented on June 17, 2024

Bildschirmfoto 2024-05-15 um 11 29 43

from directus.

PhilipZi avatar PhilipZi commented on June 17, 2024

Bildschirmfoto 2024-05-15 um 11 32 09

from directus.

PhilipZi avatar PhilipZi commented on June 17, 2024

Bildschirmfoto 2024-05-15 um 11 32 37

thats my followup.template.liquid file... and it wont find or access this one. I have no idea anymore...

from directus.

PhilipZi avatar PhilipZi commented on June 17, 2024

i get this error
"name": "DirectusError",
"extensions": {
"reason": "Template "followup-template" doesn't exist"
},
"code": "INVALID_PAYLOAD",
"status": 400

from directus.

sharkfin009 avatar sharkfin009 commented on June 17, 2024

hmm... you have rebuilt the docker-compose?

from directus.

sharkfin009 avatar sharkfin009 commented on June 17, 2024

I'm not useing a base template, but thats not relevant really. Are you on the latest version? 10.11.0?

from directus.

PhilipZi avatar PhilipZi commented on June 17, 2024

yes we did we found the error now!
we also have to add this to the docker compose.yml
Bildschirmfoto 2024-05-15 um 11 35 56

from directus.

PhilipZi avatar PhilipZi commented on June 17, 2024

working now!

from directus.

sharkfin009 avatar sharkfin009 commented on June 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.