Repeatable placeholder for xml-ready template
Learn / Forums / General InDesign Topics / Repeatable placeholder for xml-ready template
Tagged: XML
- This topic has 5 replies, 3 voices, and was last updated 9 years, 8 months ago by Ria Stamopoulou.
-
AuthorPosts
-
-
July 25, 2014 at 8:54 am #69671Ria StamopoulouMember
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”><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>……..
-
July 28, 2014 at 5:45 am #69690enDashMember
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.
-
August 11, 2014 at 10:16 am #70067Ria StamopoulouMember
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?
-
August 11, 2014 at 12:40 pm #70069Dwayne HarrisMember
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.
-
-
August 13, 2014 at 1:07 pm #70105Ria StamopoulouMember
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.
-
August 24, 2014 at 10:36 am #70236Ria StamopoulouMember
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).
-
-
AuthorPosts
- You must be logged in to reply to this topic.