This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi, Is there a quick way to set proper nest_left, nest_right and nest_depth value on a table where only parent_id is given? It is a imported menu structure where those columns are not set.
mjauvin said:
Do you need that for a model recently changed to use NestedTree trait?
Yes, currently is set up with SimpleTree only. I would like to change it to NestedTree.
I don't think there's an easy way to do this, the information is not there to build it automatically.
Why not reorder it manually with the ReorderController?
mjauvin said:
I don't think there's an easy way to do this, the information is not there to build it automatically.
Why not reorder it manually with the ReorderController?
Thank you. I'll have a look at the ReorderController, but it's +150 items, so not sure if I want to do it manually.
1-5 of 5