add collection directory location #2517
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, a Collection's "relative_directory" is set to the Collection label. The documentation is a bit confusing here, because one can apparently access the relative_directory, but not configure it.
This pull request gives users the ability to specify a directory location for their Collection. Rather than have the directory be limited to a collections label, I believe it will be better for users, including content creators, to optionally organize their collections into a folder or folders.
I'm adding this at an early state to open discussion to make sure I'm on the right track (code-wise and idea-wise). Maybe I'm the only person who obsesses over clean directory structures and maybe there's more comprehensive approach than what I've taken here.
Use case
Still being inexperienced with Ruby, I've listed out what I think I need to do to accomplish this if we determine it's the best coarse of action. Comments appreciated.