0

I need to add new items to my Treelist field in the datasource item of the component from edit mode like Linklist. Anyway, Linklist contains child items but is there any way we can handle similar functionality for Treelist also.

Thanks

1 Answer 1

1

If you are talking about this button on the Link List:

enter image description here

Than it's custom edit frame button which is located /sitecore/content/Applications/WebEdit/Edit Frame Buttons/Link/Insert Sibling in the Core database. It's using Sitecore.XA.Foundation.Editing.Commands.WebEditNew command. Take a look there into that class. Create new one, use the same, change what you want, have fun.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.