Copy link to clipboard
Copied
I have a problem where i insert a library item that consists of a group of tagged pageItems (3 textframes and 1 image).
When I do this the tagged items is created in the Root of the xml Structure and since the library item is a group (That is not taggable) 4 items are created in the root.
Now, what i want it that the 4 items are instead inside a allready existing xml node in the structure, but how ever i do it I cant move them or lost for ideas on how to make them be placed there form the beginning.
Atm I have a xmlElement that contains a text that i will remove and instead place my library asset at the first insertion point of that text (I later remove the text). The library asset is placed in the correct place and all looks fine, but the elements in the asset is "tagged" as i described in the root of the xml structure.
I have tried untagging and using .markup to tag it again but i get error saying the element is not taggable. I have tried .move but the closests i have got whas with .placeIntoInlineCopy, that kinda worked, i got the correct xml structure but it messed up the layout. 😕
What i want it the result i get if I do manually, marking the 4 elements in the structure editor, selecting New Parent Element and then move it to the correct place.
Any ideas is welcome at this stage. 🙂
Copy link to clipboard
Copied
Can you show your code?