This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

zs60815
zs60815

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
mjauvin

Do you need that for a model recently changed to use NestedTree trait?

zs60815
zs60815

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.

mjauvin
mjauvin

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?

ref. https://octobercms.com/docs/backend/reorder

zs60815
zs60815

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?

ref. https://octobercms.com/docs/backend/reorder

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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.