---
title: CMS controls - Listings and viewers with custom queries
related:
  - https://docs.kentico.com/k12sp/developing-websites/loading-and-displaying-data-on-websites/loading-data-using-custom-queries.md
  - https://docs.kentico.com/k12sp/developing-websites/loading-and-displaying-data-on-websites.md
  - https://docs.kentico.com/k12sp/developing-websites/loading-and-displaying-data-on-websites/writing-transformations.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

Listing controls with custom queries allow you to display any type of data from the Kentico database, including:

- Pages
- Custom table records
- Other objects (classes)

The controls load data using pre-defined database queries assigned through their **QueryName** property. You can only select queries stored in the **CMS\_Query** table of the Kentico database. You can create new queries or modify existing ones through the administration interface in:

- **Page types -> Edit page type -> Queries**
- **Custom tables -> Edit table -> Queries**
- **Modules -> Edit module -> Classes -> Edit class -> Queries**

You can format the data output using Kentico [transformations](https://docs.kentico.com/k12sp/developing-websites/loading-and-displaying-data-on-websites/writing-transformations.md).

##### Available controls:
