# Extract array of property values from array

**URL:** <https://discourse.gohugo.io/t/extract-array-of-property-values-from-array/8025>\
**Category:** support\
**Created:** [August 18, 2017, 5:36pm UTC](https://discourse.gohugo.io/t/extract-array-of-property-values-from-array/8025 "2017-08-18T17:36:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jetwash](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jetwash/32/3968_2.png) [@jetwash](https://discourse.gohugo.io/u/jetwash)\
**Post date:** [August 18, 2017, 5:36pm UTC](https://discourse.gohugo.io/t/extract-array-of-property-values-from-array/8025/1 "2017-08-18T17:36:02Z")

</div>

I have an array of `Page` objects, and I need to turn it in to an array of those page’s parents, but I’m having trouble finding a way to do it.

I feel like I should be able to do something like

```auto
{{ apply $.Data.Pages "index" "." "Parent" }}

```

But `index` doesn’t work on pages since they’re not actually maps. Anyone have any ideas?

The use case is that I have a bunch of pages nested under various sections, as well as a taxonomy which is only used in the child pages. On the taxonomy term pages I’d like to generate a list of all the pages with that term, _grouped by section_.
