Nested and repeating layouts

Combine containers and repeaters. Layout in the DocStudio designer user guide.

Containers can hold other containers. Combine them to build complex layouts.

Nest containers

Select a container and click a tool: the new element is placed inside. A typical invoice layout:

  • a stack for the page,
    • a row with the sender and recipient,
    • a table for the lines,
    • a fixed region for a stamp.

Reorder and re-parent

Drag rows in the Layers panel. Dropping on the middle of a container moves the element into it. Alt with the arrow keys moves it up, down, into the previous container and out of the container.

Wrap and unwrap

Wrap in stack puts an element in a new stack so you can add siblings. Unwrap removes a container and keeps its children.

Repeat

A repeater repeats its children for each item of a list. Place layouts inside it to repeat a card, a row or a block. See Repeater.

Limits

The template allows nesting up to a depth limit and a total number of nodes (5,000 in the editor by default). Very deep nesting makes templates hard to read: prefer a flat structure with a few containers.