Trying to separate Statamic into "content" and "structure" directories. #8344
-
Hi, I'm attempting to fully separate "content" and "structure" for Statamic into separate directories. The end goal being to store "variable" stuff like content in a gitignored directory, and move all structure-related files/settings into one place. My directory tree looks like this:
Is there any way to configure were these directories/files inside |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
You could alternatively adjust your gitignore file to ignore the directories you want ignored. |
Beta Was this translation helpful? Give feedback.
-
For blueprints/fieldsets you can change the directory in your app service provider:
For preferences you'd need to create your own class extending |
Beta Was this translation helpful? Give feedback.
-
@ryanmitchell Thanks! That worked for Blueprints and Fieldsets. However, the stores.users configuration seems to be only for user accounts, not for groups and roles. Am I missing something, or is that configured somewhere else? I have two "users" directories:
-- For the preferences.yaml file I've extended the DefaultPreferences class with a new constructor method:
Although I'm unsure how to bind it in my AppServiceProvider. For now I tried this, which doesn't seem to work.
|
Beta Was this translation helpful? Give feedback.
-
Can't believe I overlooked the groups and roles. Thanks for the help! |
Beta Was this translation helpful? Give feedback.
For blueprints/fieldsets you can change the directory in your app service provider: