# Show all images from entire website in site panel

**URL:** <https://forum.getkirby.com/t/show-all-images-from-entire-website-in-site-panel/30837>\
**Category:** Questions\
**Tags:** v4\
**Created:** [February 19, 2024, 5:24pm UTC](https://forum.getkirby.com/t/show-all-images-from-entire-website-in-site-panel/30837 "2024-02-19T17:24:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pippolo5](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pippolo5/32/14465_2.png) [@pippolo5](https://forum.getkirby.com/u/pippolo5)\
**Post date:** [February 19, 2024, 5:24pm UTC](https://forum.getkirby.com/t/show-all-images-from-entire-website-in-site-panel/30837/1 "2024-02-19T17:24:41Z")

</div>

Hello.  
I have the following problem with my Kirby CMS 4 site:

I would like to have an area in the panel where all images uploaded to the site are displayed. Logically, this also includes all images that are in subfolders of “content”.

I have created a section for this in the site.yml. This should point to a blueprint file section. I get the section displayed and can also upload images via it, but only the files that are directly in the content folder are displayed.  
I have tried to display all images via a query. However, it doesn’t seem to matter what I enter there, I only get the images from the content folder displayed.

Here are the different files and their contents:

/site/blueprints/sections/Images.yml

```auto
title: Bilder
icon: image
files:
  query: site.index.images
  sortable: false
  template: image

```

/site/blueprints/site.yml

```auto
title: Site

sections:
  pages:
    type: pages
  images:
    headline: Bilder
    type: file

```

It also looks as if the contents of images.yml are completely ignored. If I set the sortable to false there, for example, you can still sort the images in the panel.

Thank you very much

---

<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:** [February 19, 2024, 5:32pm UTC](https://forum.getkirby.com/t/show-all-images-from-entire-website-in-site-panel/30837/2 "2024-02-19T17:32:19Z")

</div>

> [@pippolo5](#):
>
> ```auto
> images:
> headline: Bilder
> type: file
> 
> ```

This doesn’t even use the section you defined in the images.yml (and there is not even a section of type `file`. Should be

```auto
sections:
  pages:
    type: pages
  images: sections/images

```

As an alternative to having a section in `site.yml`, you could create a separate Panel area, example [GitHub - texnixe/files-area](https://github.com/texnixe/files-area)

---

<div class="post-metadata">

**Author:** ![pippolo5](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pippolo5/32/14465_2.png) [@pippolo5](https://forum.getkirby.com/u/pippolo5)\
**Post date:** [February 19, 2024, 5:50pm UTC](https://forum.getkirby.com/t/show-all-images-from-entire-website-in-site-panel/30837/3 "2024-02-19T17:50:38Z")

</div>

Okay I understand. I adjusted my code, and now I get an error in the panel called “Invalid section type (“images”)”.

The name “images” comes from this part here:  
**images** : sections/images

---

<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:** [February 19, 2024, 6:01pm UTC](https://forum.getkirby.com/t/show-all-images-from-entire-website-in-site-panel/30837/4 "2024-02-19T18:01:55Z")

</div>

That’s because your images.yml file is missing a section type definition and the query is in the wrong place as well, should look like this:

```auto
title: Bilder
type: files
query: site.index.images
sortable: false
template: image

```

---

<div class="post-metadata">

**Author:** ![pippolo5](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pippolo5/32/14465_2.png) [@pippolo5](https://forum.getkirby.com/u/pippolo5)\
**Post date:** [February 19, 2024, 6:27pm UTC](https://forum.getkirby.com/t/show-all-images-from-entire-website-in-site-panel/30837/5 "2024-02-19T18:27:00Z")

</div>

Okay, now there is an images section again. I can also upload files (and they are stores directly in the content folder), but it just says “No Files” (In german “Keine Dateien” but im not sure if the english translation of that key is exactly that).

Is this because of the query? I found that one in another post from you here in the forum.

---

<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:** [February 19, 2024, 6:47pm UTC](https://forum.getkirby.com/t/show-all-images-from-entire-website-in-site-panel/30837/6 "2024-02-19T18:47:10Z")

</div>

> [@pippolo5](#):
>
> I can also upload files (and they are stores directly in the content folder),

Even after uploading new ones you don’t see any files in that section?

---

<div class="post-metadata">

**Author:** ![pippolo5](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pippolo5/32/14465_2.png) [@pippolo5](https://forum.getkirby.com/u/pippolo5)\
**Post date:** [February 19, 2024, 6:47pm UTC](https://forum.getkirby.com/t/show-all-images-from-entire-website-in-site-panel/30837/7 "2024-02-19T18:47:54Z")

</div>

Yes, even the new ones dont appear there.

---

<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:** [February 19, 2024, 6:49pm UTC](https://forum.getkirby.com/t/show-all-images-from-entire-website-in-site-panel/30837/8 "2024-02-19T18:49:39Z")

</div>

Ok, that makes sense because of the query, which does not include site images, for those you would have to change the query to:

```auto
query: site.index.images.add(site.images)

```

Do the other images uploaded to the site actually use the `image` template? Remove the `template` property

---

<div class="post-metadata">

**Author:** ![pippolo5](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pippolo5/32/14465_2.png) [@pippolo5](https://forum.getkirby.com/u/pippolo5)\
**Post date:** [February 19, 2024, 7:15pm UTC](https://forum.getkirby.com/t/show-all-images-from-entire-website-in-site-panel/30837/9 "2024-02-19T19:15:38Z")

</div>

Thanks, that did the trick! 🙂
