Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 51 additions & 21 deletions power-pages-docs/configure/liquid/iteration-tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,24 @@ Child Page 4

These parameters of tablerowcan be used alone, or in combination.

**cols**

Dictates how many rows the generated table should have.

**Code**

```
<table>

{% tablerow child_page in page.children cols:2 %}

{{ child_page.title }}

{% endtablerow %}

</table>
```

**Output**

```
Expand Down Expand Up @@ -274,24 +292,6 @@ Child Page 4
</table>
```

**Code**

```
<table>

{% tablerow child_page in page.children cols:2 %}

{{ child_page.title }}

{% endtablerow %}

</table>
```

Dictates how many rows the generated table should have.

**cols**

**limit**

Exits the loop after a given number of items.
Expand Down Expand Up @@ -332,11 +332,11 @@ Child Page 2
</tr>

</table>

offset
```

Starts the loop at given index.
**offset**

Starts the loop at a given index.

**Code**

Expand Down Expand Up @@ -394,6 +394,36 @@ Defines a range of numbers to loop through.
</table>
```

**Output**

```
<table>

<tr class=row1>

<td class=col1>

Child Page 1

</td>

<td class=col2>

Child Page 2

</td>

<td class=col3>

Child Page 3

</td>

</tr>

</table>
```

### See also

- [Control flow tags](control-flow-tags.md)
Expand Down