I’m working on an existing project that has set its Pages model “how should we order this collection of records?” option as “records can be organised in a tree by editors”
The pages model contains pages for multiple distinct parts of the website. As such, I want to have top level folders in the content nav with sub pages folder.
I believe i could do this with the “Apply saved shared filter” option in the content nav settings for the menu item.
So the issues I have are…
I can’t create a saved search filter because the current model is set to Tree view. Which doesn’t let you create filters.
To solve this i want to do the following.
- change the model collection ordering to “default ordering”
- create the shared filters
- set the model collection ordering to As a tree
[Edit] After some investigation i’ve updated my questions and current status…
Question 1 – Can i switch the collection ordering on a model without loosing data?
I do not know what will happen with the current tree view layout data if i turn it to standard view.
Will it retain the current nesting? or will it loose its previously organised state?
Seems switching collection ordering on a model brings up warning that all data will be lost. So this is not possible.
Question .2 – Can i filter models with models collection ordering set to As a tree?
When I put the model collection ordering to treeview, and i click the left hand nav with it set to use the shared filter. Will the pages be filtered? So i only see the pages in that section, in the tree view layout.
No, this doesn’t currently work. Can create a filter using code, but it doesn’t filter when in tree view.
Request. It would be good if you had an option to create a filter in the treeview layout.
- Would be nice if we can filter models where collection ordering is set to tree mode.
- Would be good if we didn’t have to use code to create filters when model is displayed as a tree.
- Would be good if we could switch collection ordering , to manage different editing requirements, without loosing the data.
Perhaps this is too much of an edge case to support. But its sort of where i’ve ended up. Basically my only alternative is to create a seperate Page model, which aint happening.