# View all images on all pages from site.yml blueprint?

**URL:** <https://forum.getkirby.com/t/view-all-images-on-all-pages-from-site-yml-blueprint/32584>\
**Category:** Questions\
**Created:** [September 30, 2024, 5:18pm UTC](https://forum.getkirby.com/t/view-all-images-on-all-pages-from-site-yml-blueprint/32584 "2024-09-30T17:18:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcodyb](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jcodyb/32/12554_2.png) [@jcodyb](https://forum.getkirby.com/u/jcodyb)\
**Post date:** [September 30, 2024, 5:18pm UTC](https://forum.getkirby.com/t/view-all-images-on-all-pages-from-site-yml-blueprint/32584/1 "2024-09-30T17:18:17Z")

</div>

I need to go through and change metadata on all images in all posts. I’d love to be able to do this via the panel and preferably just by pressing left/right on the keyboard to cycle through them instead of diving into each page and clicking on the files there. Is this possible?  
I tried:

```auto
allImages:
        type: files
        headline: All Images
        query: site.index.files # Get all images from all pages
        info: "{{ file.dimensions }}"
        image:
          ratio: 5/4
          cover: true
        size: small

```

Which shows me all the files, but I guess because they’re still organized into sub-directories I can’t just navigate through them all.

---

<div class="post-metadata">

**Author:** ![GB\_DESIGN](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/gb_design/32/14956_2.png) [@GB\_DESIGN](https://forum.getkirby.com/u/GB_DESIGN)\
**Post date:** [September 30, 2024, 7:31pm UTC](https://forum.getkirby.com/t/view-all-images-on-all-pages-from-site-yml-blueprint/32584/2 "2024-09-30T19:31:50Z")

</div>

Have a look at @texnixe Plugin:

> [@Best practice for managing media files by clients](https://forum.getkirby.com/t/best-practice-for-managing-media-files-by-clients/30743/9):
>
> Here you go: [GitHub - texnixe/files-area](https://github.com/texnixe/files-area). Adapt to your needs.

This will list all files alphabetically. The display can also be restricted to images. A separate menu item will be displayed in the navigation.

EDIT: The suggestion from @lukasbestle is another approach that I have not yet tried.

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [September 30, 2024, 7:33pm UTC](https://forum.getkirby.com/t/view-all-images-on-all-pages-from-site-yml-blueprint/32584/3 "2024-09-30T19:33:14Z")

</div>

Your analysis is correct. The query makes the section list all files throughout the site, however the prev/next navigation directly on the file view is not aware of the section you came from. So it does not have the same list for the navigation that the query in your section generates.

What you could do is to create a page with [virtual files](https://getkirby.com/docs/guide/virtual-content/virtual-files) like so:

```php
<?php

use Kirby\Cms\Page;
use Kirby\Cms\Files;

class ImagesPage extends Page
{
  public function files(): Files
  {
    return $this->site()->index()->files();
  }
}

```

Because it’s a collection on a single page, the prev/next arrows will work. However I haven’t tested this myself. It could be that editing those files won’t fully work as expected.

---

<div class="post-metadata">

**Author:** ![jcodyb](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jcodyb/32/12554_2.png) [@jcodyb](https://forum.getkirby.com/u/jcodyb)\
**Post date:** [October 1, 2024, 4:48pm UTC](https://forum.getkirby.com/t/view-all-images-on-all-pages-from-site-yml-blueprint/32584/4 "2024-10-01T16:48:08Z")

</div>

Ok thank you I’ll give this a shot
