# Link to edit page in table layout column of pages section

**URL:** <https://forum.getkirby.com/t/link-to-edit-page-in-table-layout-column-of-pages-section/26710>\
**Category:** Questions\
**Tags:** v3\
**Created:** [October 12, 2022, 9:58am UTC](https://forum.getkirby.com/t/link-to-edit-page-in-table-layout-column-of-pages-section/26710 "2022-10-12T09:58:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gareth\_Jones](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/gareth_jones/32/9981_2.png) [@Gareth\_Jones](https://forum.getkirby.com/u/Gareth_Jones)\
**Post date:** [October 12, 2022, 9:58am UTC](https://forum.getkirby.com/t/link-to-edit-page-in-table-layout-column-of-pages-section/26710/1 "2022-10-12T09:58:34Z")

</div>

I want to create a new column in a table layout, that you can click to edit the page. Is this possible? I can’t seem to mix html and the kirby tag in the value option.

This is what I have:

```auto
trees:
            type: pages
            label: Trees
            layout: table
            text: false
            columns:
              id:
                label: Tree ID
                value: "{{ page.title }}"
             
       

```

---

<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:** [October 12, 2022, 11:50am UTC](https://forum.getkirby.com/t/link-to-edit-page-in-table-layout-column-of-pages-section/26710/2 "2022-10-12T11:50:53Z")

</div>

You can set `type` to HTML

```auto
id:
  label: Tree ID
  type: html
  value: "{{ page.title }}"

```

Might make sense to use a custom page method like

```auto
   public function panelLink()
    {
        return Html::link($this->panel()->url(), $this->title());
    }

```

Then:

```auto
id:
  label: Tree ID
  type: html
  value: "{{ page.panelLink }}"

```

---

<div class="post-metadata">

**Author:** ![Gareth\_Jones](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/gareth_jones/32/9981_2.png) [@Gareth\_Jones](https://forum.getkirby.com/u/Gareth_Jones)\
**Post date:** [October 12, 2022, 1:11pm UTC](https://forum.getkirby.com/t/link-to-edit-page-in-table-layout-column-of-pages-section/26710/3 "2022-10-12T13:11:09Z")

</div>

thanks! where does the custom method go? Do I create a plugin?

---

<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:** [October 12, 2022, 4:33pm UTC](https://forum.getkirby.com/t/link-to-edit-page-in-table-layout-column-of-pages-section/26710/4 "2022-10-12T16:33:37Z")

</div>

Sorry, yes, either in a plugin or if you already have a model, you can add the method there.

> **[Page methods](https://getkirby.com/docs/reference/plugins/extensions/page-methods)**
