# Show title not URI of pages field in column of "pagetable" plugin

**URL:** <https://forum.getkirby.com/t/show-title-not-uri-of-pages-field-in-column-of-pagetable-plugin/24809>\
**Category:** Questions\
**Tags:** v3\
**Created:** [February 22, 2022, 10:39pm UTC](https://forum.getkirby.com/t/show-title-not-uri-of-pages-field-in-column-of-pagetable-plugin/24809 "2022-02-22T22:39:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiahr](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/kiahr/32/7169_2.png) [@kiahr](https://forum.getkirby.com/u/kiahr)\
**Post date:** [February 22, 2022, 10:39pm UTC](https://forum.getkirby.com/t/show-title-not-uri-of-pages-field-in-column-of-pagetable-plugin/24809/1 "2022-02-22T22:39:24Z")

</div>

On a parent page I am using the [pagetable](https://github.com/sylvainjule/kirby-pagetable) plugin from @sylvainjule.

I would like to get the value of its children’s `pages` field. Currently I can get the URI, but I would prefer to get the **Title** of the page selected in the `pages` field.

On the parent page I have this:

```auto
sections:

  mypagetable:
    headline: Artworks
    type: pagetable
    templates: artwork
    columns:
      artist:
        label: Artist
        text: '{{ page.artist}}'

```

On the child pages I have:

```auto

artist:
  type: pages
  query: site.children.filterBy('intendedTemplate', 'database').children.template('artists').children.template('artist')

```

Is this possible at all?

---

<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 22, 2022, 11:56pm UTC](https://forum.getkirby.com/t/show-title-not-uri-of-pages-field-in-column-of-pagetable-plugin/24809/2 "2022-02-22T23:56:49Z")

</div>

> [@kiahr](#):
>
> ` text: '{{ page.artist}}'`

```auto
text: '{{ page.artist.toPage.title}}'

```

---

<div class="post-metadata">

**Author:** ![kiahr](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/kiahr/32/7169_2.png) [@kiahr](https://forum.getkirby.com/u/kiahr)\
**Post date:** [February 23, 2022, 2:48am UTC](https://forum.getkirby.com/t/show-title-not-uri-of-pages-field-in-column-of-pagetable-plugin/24809/3 "2022-02-23T02:48:36Z")

</div>

Thanks @texnixe. And if there are multiple pages selected in the field, is there a way to utilise `toPages` ?

---

<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 23, 2022, 7:13am UTC](https://forum.getkirby.com/t/show-title-not-uri-of-pages-field-in-column-of-pagetable-plugin/24809/4 "2022-02-23T07:13:09Z")

</div>

> [@kiahr](#):
>
> is there a way to utilise `toPages` ?

No, that wouldn’t make sense, because you would need a loop. If you really want to output multiple title, then use a custom page method or page model method to output the desired content and use that method in your query.
