# Getting field content from another pag inside of a kirbytext textfield

**URL:** <https://forum.getkirby.com/t/getting-field-content-from-another-pag-inside-of-a-kirbytext-textfield/22570>\
**Category:** Questions\
**Tags:** v3\
**Created:** [June 11, 2021, 10:13am UTC](https://forum.getkirby.com/t/getting-field-content-from-another-pag-inside-of-a-kirbytext-textfield/22570 "2021-06-11T10:13:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![exeldoc](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/exeldoc/32/6224_2.png) [@exeldoc](https://forum.getkirby.com/u/exeldoc)\
**Post date:** [June 11, 2021, 10:13am UTC](https://forum.getkirby.com/t/getting-field-content-from-another-pag-inside-of-a-kirbytext-textfield/22570/1 "2021-06-11T10:13:23Z")

</div>

Hey.  
Privacy information have to contain some contact information.  
I have these Privacy information as an HTML converted Text… and it works perfectly to load that content with Kirbytext in the tamplate.

Here is the thing: I don’t want the client entering their contact info by Hand into that text field with all the html tags and stuff in the panel – especially if the information have been enter already.  
Is there a way to get the content information from another page e.g. contact into that kirbytext?

I imagend it like this (not working):

```
----
Text: 
...more infomation ...
<p><span style="color: var(--blau);">Telephone: <?= $contact->phone() ?></span><br>
...more infomation ...

```

template:

```
<div class="legal_text">
  <?= $page->text()->kt()?>
</div>

```

The outcome is just the text: phone()

Would that be possible somehow in kirby?

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [June 11, 2021, 10:26am UTC](https://forum.getkirby.com/t/getting-field-content-from-another-pag-inside-of-a-kirbytext-textfield/22570/2 "2021-06-11T10:26:03Z")

</div>

You cannot use PHP code in text files. However, you can use placeholders that you then replace with the information, with a Kirbytext hook, see example here:

> **[Creating pages from frontend](https://getkirby.com/docs/cookbook/forms/creating-pages-from-frontend#the-success-page-and-a-plugin)**
>
> Create pages from user input on the front end, e.g. from an event registration form.

---

<div class="post-metadata">

**Author:** ![exeldoc](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/exeldoc/32/6224_2.png) [@exeldoc](https://forum.getkirby.com/u/exeldoc)\
**Post date:** [June 11, 2021, 11:20am UTC](https://forum.getkirby.com/t/getting-field-content-from-another-pag-inside-of-a-kirbytext-textfield/22570/3 "2021-06-11T11:20:42Z")

</div>

Ah. I didn’t get into these till now…  
Tanks. That will work out.
