Skip to content

Relate default asset location based on site #12231

Answered by brandonkelly
RetroChaos asked this question in Ideas
Discussion options

You must be logged in to vote

One option is, rather than giving each site its own volume, you could have them all share the same volume and give the volume site-specific subfolders. Then in your Assets field, you can enable the “Restrict assets to a single location” setting, and set the location to begin with {site.handle}/....

If you’re using Craft 4, you can do this without sacrificing nested subfolders, thanks to the new “Allow subfolders” setting (#9070).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RetroChaos
Comment options

Answer selected by RetroChaos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants