I want to create parent child relationship of unknown level depth. As below example
- parent (repeatable)
- label (key text)
- slug1 (UID)
- child (repeatable)
- label (key text)
- slug2 (UID)
- child (repeatable)
- label (key text)
- slug-3a (UID)
- child (repeatable)
- label (key text)
- slug3 (UID)
- child (repeatable)
- label (key text)
- slug4 (UID)
Like above of unknown depth. Where parent has many child and child has many child
and i also want to select a child of any level of depth from a collection type post. I need to get all its parent slugs along with current child slug.
for example if i select slug4 from post collection type then i need the slug3 , slug 2 slug1 but not slug-3a