Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Cant move tagged content to where I want it in the Indesign XML Structure

New Here ,
Aug 20, 2024 Aug 20, 2024

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. 🙂 

TOPICS
Scripting
78
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 20, 2024 Aug 20, 2024
LATEST

Can you show your code?

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines