Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Theme System: Public Files #3904

Open
ssddanbrown opened this issue Dec 6, 2022 · 1 comment
Open

Visual Theme System: Public Files #3904

ssddanbrown opened this issue Dec 6, 2022 · 1 comment

Comments

@ssddanbrown
Copy link
Member

Within the visual theme system there's one major element missing: The ability to define files that can be put in public space to be references or used within other content. This could be JS libraries, CSS files, images, videos etc...

There are ways to hack around this adding custom endpoints or embedding content inline, but these are awkward extra steps.
Ideally we'd provide an in-built way that can load static files from public web space.

Thoughts

  • Do we copy to public folder or symlink?
    • Copy would require some kind of existing file removal/update on original change.
    • How well cross-system (operating and file) supported are symlinks?
      • What about on container mounts?
      • Will we face challenges with webservers diving into symlinked folders?
  • When do we do this?
    • On request to file?
    • On some kind of "install" event?
    • On user action?

I'm thinking we symlink to public location upon request if there is not already a link. Just need to assess symlink usage.
Will continue this with structural thoughts soon.

@beckymarques
Copy link

You should insert on docs how to add custom css and js, as some people can't use the “Custom HTML Head Content” for many reasons, like there will be lots of admins which are not devs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants