Repeatable placeholder for xml-ready template

Learn / Forums / General InDesign Topics / Repeatable placeholder for xml-ready template

Tagged: 

Viewing 4 reply threads
  • Author
    Posts
    • #69671

      Greetings,

      I’m trying to create a template for ads, like the ones you see on a newspaper (5 column template).

      My goal is to click on an XML placeholder, and load into it an XML file. However, when I do so, the XML is loaded but instead of creating multiple placeholders (each for every repeatable tag), I can only see the rest of the content if I resize the placeholder (to see this in action, just create a new document and import a rather large xml file. Only the 1st page is filled with content).

      The number of tags in each xml file is not fixed and I want to push the elements in the template, making room before them for the xml that is loaded (spreading from column to column and then moving to another page), without spoiling the rest of the layout.

      My xml file looks like this:

      <?xml version=”1.0″?>
      <resultset statement=”select adtext from ad where adCategoryID=3 order by adinsertdate desc limit 100″
      xmlns:xsi=”https://www.w3.org/2001/XMLSchema-instance”&gt;

      <row>
      <field name=”adtext”>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vestibulum viverra eros eu convallis. Nam vestibulum augue vel lacus sodales venenatis.</field>
      </row>

      <row>
      <field name=”adtext”>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vestibulum viverra eros eu convallis. Nam vestibulum augue vel lacus sodales venenatis.</field>
      </row>

      ……..

    • #69690
      enDash
      Member

      Hi Ria,

      There are a few ways you can achieve this, one way is if it’s all in one text box you can set it to auto size to accommodate the variable length of the xml. See here for more information https://helpx.adobe.com/indesign/using/text-frame-fitting.html

      If it has to span over multiple pages you can do this too by using auto flow as described here https://helpx.adobe.com/indesign/using/threading-text.html

      Hope this helps.

    • #70067

      My text frame still does not resize to fit the content. I selected Height Only from the Text Frame Options and the direction to be downwards. It just overlaps the next frame ( I also set the same options on the following text frame).

      * Is there a way to attach an image to my post?

      • #70069

        Nope. You can’t attach images. But if you have something like drop box, 4shared, or photobucket, you could host the image there and then post the link here.

    • #70105

      I’ve added the screenshots here: https://www.dropbox.com/sh/kgbdps4loe73qoo/AACWPTl6kCujS270zIj1X2e9a

      That show the structure of my template, as well as the problem with the text frame for the Priority Ads that do not resize. Moreover, when I place the xml in the normal ads text frame, that spreads in 6 columns, It only imports the first 6-7 records (even though there is room for the rest as well).

      * The language in the screenshots are greek.

    • #70236

      Editing the previous post (I edited once so I can’t do it again).

      Although my text frames now resize in height I need my template to create new text frames (in columns so that the flows remains) to occupy any additional text that does not fit the text frame, or even add new pages (with the same layout) to do the same thing. Is there a way to do so? (I updated the screenshot in the link from my previous post).

Viewing 4 reply threads
  • You must be logged in to reply to this topic.
>