# Query images from whole site within Layout

**URL:** <https://forum.getkirby.com/t/query-images-from-whole-site-within-layout/34029>\
**Category:** Questions\
**Tags:** v4\
**Created:** [May 2, 2025, 2:31pm UTC](https://forum.getkirby.com/t/query-images-from-whole-site-within-layout/34029 "2025-05-02T14:31:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuel.salminen](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@samuel.salminen](https://forum.getkirby.com/u/samuel.salminen)\
**Post date:** [May 2, 2025, 2:31pm UTC](https://forum.getkirby.com/t/query-images-from-whole-site-within-layout/34029/1 "2025-05-02T14:31:39Z")

</div>

Hey!

I’ve setting up a page with [Layout](https://getkirby.com/docs/reference/panel/fields/layout) and everything works nicely. However, I’m trying to find a way to query images from another page, or the whole site.

```auto
sections: 
          layout:
            type: fields
            fields:
              layout:
                label: Layout
                type: layout
                layouts:
                  - "1/1"
                  - "1/2, 1/2"
                  - "1/3, 2/3"
                  - "2/3, 1/3"
                  - "1/3, 1/3, 1/3"
                fieldsets:
                  - heading
                  - text
                  - image
                  - video

```

The image field allows for uploads and selection of images from within the same page. Is there a way to extend the query to the entire site somehow, to avoid duplicate uploads?

`query: site.index.images` works if I create a standalone image field, but I’d like to apply it to the Layout structure.

Many thanks!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [May 2, 2025, 2:40pm UTC](https://forum.getkirby.com/t/query-images-from-whole-site-within-layout/34029/2 "2025-05-02T14:40:14Z")

</div>

Create a new blueprint for the image block, see [Customizing core blocks | Kirby CMS](https://getkirby.com/docs/guide/page-builder/customizing-core-blocks)

---

<div class="post-metadata">

**Author:** ![samuel.salminen](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@samuel.salminen](https://forum.getkirby.com/u/samuel.salminen)\
**Post date:** [May 4, 2025, 7:55pm UTC](https://forum.getkirby.com/t/query-images-from-whole-site-within-layout/34029/3 "2025-05-04T19:55:59Z")

</div>

Worked, thank you!
