Problem/Motivation
Setting up a split directory structure for a multilingual multisite is somewhat multi-confusing. I'm testing both the Collection and Folder approach and here's what I have.
On the documentation page Split Directory Structure, one can read this:
Do **NOT** put configuration directories inside of each other. In particular the split folder **MUST NOT** be inside of the sync directory.
And the examples given are somewhat ambiguous, not 100% clear to me.
- Question: can I adopt any of the 2 approaches illustrated below?
- Question: which is the recommended one for my use case?
MULTISITE SETUPS (multilingual)
Using Collection storage
config
├── default
│ └── language
│ └── en
├── site-1
│ └── split
│ ├── dev
│ ├── prod
│ └── stage
├── site-2
│ └── split
│ ├── dev
│ ├── prod
│ └── stage
└── site-3
└── split
├── dev
├── prod
└── stage
Using Folder storage
config
├── splits
│ ├── site-1
│ │ └── dev
│ ├── site-2
│ │ └── stage
│ └── site-3
│ └── prod
├── default
│ └── language
│ └── en
├── site-1
│ └── split
│ ├── prod
│ └── stage
├── site-2
│ └── split
│ ├── dev
│ └── prod
└── site-3
└── split
├── dev
└── stage
Comments
Comment #2
bisonbleu commentedComment #3
bisonbleu commentedComment #4
bisonbleu commentedNote that the 'Collection' storage structure is automatically provided as is by config_split.module. While the 'Folder' storage structure is the one I created based on my understanding of the documentation.
The documentation seems to suggest that the 'Collection' storage structure will not work ?
Comment #5
bisonbleu commentedAnswering my own question.
It turns that the directory structures displayed in the summary are "dirty", they contain artifacts from numerous experiments and as such do not clearly represent the storage options. Let's clean up the first one which uses the Collection storage.
Below is what use to be in the issue summary and it is wrong/incorrect. The summary now displays the correct directory structure.
Comment #6
bisonbleu commentedAnswering my own question - part #2.
The directory structures displayed in the summary are "dirty", they contain artifacts from numerous experiments and as such do not clearly represent the storage options. Let's clean up the second one which uses the Folder storage using this pattern:
../config/splits/site-x/server.Below is what use to be in the issue summary and it is wrong/incorrect. The summary now displays the correct directory structure.
Comment #7
bisonbleu commentedMy best answer in the current context
I ended up using the Collection storage option because it felt safer since the directory structure is automatically handled by the module.
Comment #9
bisonbleu commentedComment #10
bircherHi
I am glad you found your solution!