# Tables, Lists, and Comments in Print Templates

> How to include repeating data — line items, task lists, comment histories — in Print documents using repeating blocks and list variables.
> Help → Print → Tables, Lists, and Comments in Templates

URL: https://thatapp.io/help/print/print-tables-lists
Category: Print

---

---

Many documents need repeating data — a table of line items, a list of project tasks, a record's comment history. Print handles these with repeating blocks.

**Tables with repeating rows**

To create a table where each row is a record from a related app:

1. In the template editor, insert a table
2. Design the header row (column names, formatting)
3. In the data row, add a variable for each column
4. Select the row and click "Make this row repeat"
5. Set the data source: the related app or list field that drives the rows

At generation time, the row repeats once per related record. If a project has 8 line items, the table has 8 data rows.

**Simple lists**

For a bulleted or numbered list of related records:

1. Add a text block to your template
2. Insert a list variable: `{{LIST(podio.project.tasks, task.name)}}`
3. The list renders as bullet points, one per task

**Comment history**

To include a record's comment history:

1. Add a section to your template
2. Set the data source to Comments
3. Add variables: `{{comment.author}}`, `{{comment.date}}`, `{{comment.text}}`
4. Make the section repeat

At generation time, one section renders per comment, in chronological order.

**Sorting and filtering repeating blocks**

In the repeating block settings, you can:
- Sort by any field (ascending or descending)
- Filter to only include records matching a condition
- Limit to N records

**Related:** Template Architecture · Variables — Pulling Data Into Your Document
