> For the complete documentation index, see [llms.txt](https://docs.cwicly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cwicly.com/blocks/query-template/grid-editor.md).

# Grid editor

The Grid Editor tab allows you to visually edit & design your Query template Grid layout. You can add or remove Modules or Fractions and adjust Height, Row Gap and Column Gap.

{% hint style="info" %}
Remember to set the required  Items Per Page in Pagination in the `Query` block.
{% endhint %}

{% hint style="danger" %}
You can only open the Grid Editor if Auto Grid is deactivated.
{% endhint %}

![](https://lh4.googleusercontent.com/Mun59TBWM-aCZhqZmaBTxa-9MTmBOEL9JTPBItcWQ5uHTph-T00VIX9ajXBxsvrZra-oi5iMaOeL9jS6-7fyLp9FWhoIN46LCWVy4degl-ekJEohAmzS6tgfG0weZrCVDmsgS9f2H-ojTlmWEGJOPll5STsljgQn2ebHCfZOg82IqR9ZCJyS33YiFMli8g)

<details>

<summary>Open</summary>

1. Select a Template Query block
2. Open the block inspector
3. Navigate to the primary tab
4. Find Grid Editor tab
5. Open to Edit

</details>

<figure><img src="https://lh3.googleusercontent.com/0S2EQQQr40zDQ7-5izSfXXPbYzZMDDESBwrsJtul0HVfMF2a-PizUIgaftVXJ0KCCrPbDbuNppEOPz0xBplT_XMNxZYQQhmLrdzb2STY4MoDtSAXFvKC4ccS7qHmfVjHP_UqBhgep2U-ILBxpexdxm6OK6oiw9-WAIer_gmnblC-g55ElRL9xONyJWFqwg" alt=""><figcaption></figcaption></figure>

## Fractions

Adding fractions leaves ‘potential’ space in case you want to add more Modules (Items per Page).&#x20;

{% hint style="info" %}
Adding fractions will allow you to add more Items per Page to your row.
{% endhint %}

This is only ‘potential’ space because the auto grid system will base the grid layout on the Module (Items per Page) skeleton.

![](https://lh5.googleusercontent.com/-RKW7H-Q9dsHUMuM6E2bdTW8XwFtLS5C6-ns6iPqsZPYzkHgdT-Hjmi1UZIwLFp6kM4ix-In9dQOkn1sY0RsnhhNGT-jKfZw6090002J9_Y8JvjflixMAg87NcVd-gzpna8DJeN9tZcVGRuPOuGl7l6kFFlxGaYyIQ0OzkiqmOihp_o_HtSkVlCZAiie)

<details>

<summary>Add/Remove</summary>

1. Select a Template Query block
2. Open the block inspector
3. Navigate to the primary tab
4. Find Grid Editor tab
5. Open Grid Editor
6. Find Fractions
7. Add or remove number as required

</details>

## Set Minimum Height, Row Gap or Column Gap

Minimum Height, Row Gap or Column Gap can be modified in the Grid Editor or directly from the Primary Tab in the block inspector.

![](https://lh4.googleusercontent.com/H3fU-yfo_wVl3llw7oprEgAbkjMlv4TcvAmPsCCkt0buWzstNW1FZjb0crtv-FvDFw7c3mk-njBu7McCNrynmIhmez1Z8A6BoHOem65QI9jnAfShfFdVAqmpY20gLB6ZEArVw1hB2wAS9nf7Iga4zTAM7P2Yt9v5ABeWK4V8PSiKFyMM2qv3ShcOrCsU)

<details>

<summary>Modify</summary>

1. Select a Template Query block
2. Open the block inspector
3. Navigate to the primary tab
4. Find Grid Editor tab
5. Open Grid Editor
6. Find Minimum Height, Row Gap, Column Gap
7. Modify Minimum Height, Row Gap or Column Gap as required

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cwicly.com/blocks/query-template/grid-editor.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
