# \[SOLVED\] Media in separate folder and accessing with Page Resources

**URL:** <https://discourse.gohugo.io/t/solved-media-in-separate-folder-and-accessing-with-page-resources/11756>\
**Category:** support\
**Created:** [April 29, 2018, 10:12am UTC](https://discourse.gohugo.io/t/solved-media-in-separate-folder-and-accessing-with-page-resources/11756 "2018-04-29T10:12:31Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![regis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/regis/32/4958_2.png) [@regis](https://discourse.gohugo.io/u/regis)\
**Post date:** [April 29, 2018, 1:06pm UTC](https://discourse.gohugo.io/t/solved-media-in-separate-folder-and-accessing-with-page-resources/11756/6 "2018-04-29T13:06:08Z")

</div>

Sorry about earlier, I misread your question.

Now `.GetMatch` does not allow multiple exclusion (not that I am aware of), but `where` allows you to filter your range very thoroughly though

The following is not tested, but this is where you want to go I think. I stored resources in a var for readability:

```auto
{{ $resources := (.Resources.Match "**") }}
{{ range where $resources ".Name" "in" .Params.gallery }}
{{/* do your code /*}}
{{ end }}

```

Go check the doc on `where` used with `"in"`

---

_[View the full topic](https://discourse.gohugo.io/t/solved-media-in-separate-folder-and-accessing-with-page-resources/11756)._
