- Issue created by @Akhil Babu
- 🇮🇳India Akhil Babu Chengannur
The nodePath value is critical to place each component at its intended position. For example, if only the content region is enabled and there are no components placed on a page, to add a component like sdc.example.two-column with two sdc.example.heading components in each slot, we could previously calculate the nodePath like this:
- sdc.example.two-column → [0, 0]
- first sdc.example.heading → [0, 0, 0, 0]
- second sdc.example.heading → [0, 0, 1, 0]
Then, components could be added one by one using addNewComponentToLayout. It would be great if we could bring back the ability to give nodePath directly in the method itself.
- 🇮🇳India Akhil Babu Chengannur
Just noticed that addNewComponentToLayout still supports adding a 'to' param in the payload. So, only this change has to be reverted
- Merge request !1493XB AI: Bring back the 'to' option in addNewComponentToLayout call in AiWizard.tsx → (Merged) created by Akhil Babu
- First commit to issue fork.
-
jessebaker →
committed 9c388dbf on 1.x authored by
akhil babu →
Issue #3543519 by akhil babu: XB AI: Bring back the 'to' option in...
-
jessebaker →
committed 9c388dbf on 1.x authored by
akhil babu →