Hi all,
If I create a resource under a resource the parent becomes a container however I don’t want this to happen, is there any setting that can be changed to stop parents becoming a container as I can’t seem to fine one.
Using revo 2.7
Thanks
I don’t think if this exist.
-
MODX Staff
- 10,725 Posts
I think this would make a great feature request.
-
☆ A M B ☆
- 24,524 Posts
-
☆ A M B ☆
- 24,524 Posts
Ah, so sometimes you want friendly alias paths and sometimes you don’t. What effect would this have on the building of the Resource Tree? In Evo, if you "turn off" a resource’s is_parent setting, its children disappear from the Tree (or at least it used to; maybe this got fixed?).
I just have to go back and edit the parent every time I add a new page and take the tick out of container, the tree stays the same it just removes the second element of the friendly URL.
Wouldn’t be a problem on a none live site but as I’m still adding campsites to my site I have to do it after every one added.
Maybe an auto_parent system setting would be the way to go.
In any event, it seems that the resource/create processor should only set the parent’s container status on the birth of the first child. If there’s already a sibling and it’s not set to container, the user must not want it to be a container.
http://bugs.modx.com/issues/3509