The thing is: I have the following content types:
How can I make a hierarchical menu based on this? I want it to look like this:
The content-types are now linked through ContentPickerFields. So the Organisation-type has a contentpickerfield "Departments" that has contentitems of type "Department". Departments has a contentpickerfield "Processes" that has
contentitems of type "Process". etc.
At first I was going to use "Containers" to do this, but I found out there can only be one container to a contentitem. We have a requirement of the contentitems being contained by more than one container. The contenttypes you see listed above are
not all contenttypes that are being used in our project.
I tried creating a projection and somehow defining a join between Organisation.Departments.Ids and Department.Id but I couldn't figure out how to do it. Of course, if I were to succeed doing this, I'd still have to also create joins for Department.Processes.Ids
contains Process.Id and Process.SubProcesses.Ids contains SubProcess.Id.
Note that SubProcess may sound weird (you'll probably say it's not needed, because a Process can be a SubProcess too), but we really require to have the structure to be like this.
So what I want is the menu to show multi-level nodes. Root node = Organisation, leafnode of that = Department, leafnode of that = Process, etc.