12-29-2023 06:42 AM
Hello all, I am working on a doc comp template that is populated with xml tags. One section is a repeating section and while I am familiar with repeating sections I can only ever get them to stack on top of each other in the repeater. I am wondering if there is a way to have them side by side stacked in two columns so for example if there were 4 items it would be two rows, 5 items would be three rows etc..
01-02-2024 01:44 PM
Hello Nate,
Thank you for reaching out on Community.
Currently there isn't a way to specify an output direction for Repeating Placeholders. Each repeating item will be inserted in a sequential order top to bottom.
However, depending on your XML content, you may be able to achieve a similar look using regular XML placeholders and manual formatting with columns. Any XML Query placeholder on the template with a xpath index over the number of nodes provided in the XML will simply be ignored.
For example, given the following sample XML https://www.w3schools.com/xml/cd_catalog.xml
We can create the following template layout with several separate regular XML Query placeholders with the following xpath:
/CATALOG/CD[1]/ARTIST
Where CD
And we'd get the following result:
There may be other ways to satisfy side-by-side output that doesn't require a software change. But ultimately, a software change to Repeating Placeholders would be the ideal scenario.
01-02-2024 01:44 PM
Hello Nate,
Thank you for reaching out on Community.
Currently there isn't a way to specify an output direction for Repeating Placeholders. Each repeating item will be inserted in a sequential order top to bottom.
However, depending on your XML content, you may be able to achieve a similar look using regular XML placeholders and manual formatting with columns. Any XML Query placeholder on the template with a xpath index over the number of nodes provided in the XML will simply be ignored.
For example, given the following sample XML https://www.w3schools.com/xml/cd_catalog.xml
We can create the following template layout with several separate regular XML Query placeholders with the following xpath:
/CATALOG/CD[1]/ARTIST
Where CD
And we'd get the following result:
There may be other ways to satisfy side-by-side output that doesn't require a software change. But ultimately, a software change to Repeating Placeholders would be the ideal scenario.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.