Possible to use base_url setting in a directory path?

I’d like to set the Directory field for file uploads to files/{{base_url}}/ but this doesn’t seem to work. I tried [[++base_url]] as well but no luck. Is there a way to do this?

Media sources typically are already relative to the base url, so that directory is too. There’s no placeholder for that implemented.

Assuming you might be doing something multi-context here, what about using [[+context_key]]?

1 Like

That works! Thanks!

1 Like