1 Reply Latest reply on Dec 21, 2015 3:18 AM by sarfrazm7834471

    how to put(Link) some data of text frame of layer 1 to layer 2

    sarfrazm7834471 Level 1

      Hi Guys...

       

      I have a text frame that contains 5 xml element, these elements showing in xml structure of my InDesign file,

      above text frame is in layer 1.

      And i want to put(Link) one xml element data into layer 2, and xml structure should not be change.

       

      This is the code...........

       

      var doc = app.activeDocument;

      var OnlineLayer = doc.layers.add({name: "Online"});

      var myNode = doc.xmlElements[0].xmlElements[2];

       

      I want to link myNode Element with layer named 'Online'

       

      Is it Possible, If possible please tell me...

      Thanks...