Changing the default user folder location

Hey good people!

I have a technical question about the default folder locations in Grav.

What i want to achieve is to have the user folder in a folder outside of Grav root.

Like this:

  • Project root
    – Assets
    — Grav root
    – Development
    — grav user folder

At the moment i believe that

grav_root/system/defines.php

is my best hope. I have tried to the best of my logic to change it to look for the user folder in another location, but to no avail.

I have also found that streams can be used to change locations or add locations, but I can’t understand how to do it to solve my problem.

Thank you very much for any info regarding this!

Depending on your hosting environment and permissions you could try to use a symbolic link.

Sadly a test reveals that although at first sight the site works fine using a symlink updating plugins and possible other actions, fail.

During a plugin update Grav reports in a red popup: “The target path “…” is a symbolic link”, which is absolutely correct.