# setContent() error

**URL:** <https://forum.getkirby.com/t/setcontent-error/14713>\
**Category:** Questions\
**Tags:** v3\
**Created:** [June 25, 2019, 5:38pm UTC](https://forum.getkirby.com/t/setcontent-error/14713 "2019-06-25T17:38:23Z")\
**Posts on this page:** 2\
**Page:** 2

<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:** [June 26, 2019, 2:32pm UTC](https://forum.getkirby.com/t/setcontent-error/14713/21 "2019-06-26T14:32:04Z")

</div>

> [@texnixe](#):
>
> ‘content’ =\> page(‘impressum’)

You would have to do it like this:

```auto
'content' => page('impressum') ? page('impressum')->content()->toArray() : null

```

Although I don’t see much purpose in using a route if the page exists.

---

<div class="post-metadata">

**Author:** ![teh](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/teh/32/9669_2.png) [@teh](https://forum.getkirby.com/u/teh)\
**Post date:** [June 27, 2019, 2:11pm UTC](https://forum.getkirby.com/t/setcontent-error/14713/22 "2019-06-27T14:11:50Z")

</div>

No, that’s true, it’s some leftover code from a previous version. 😃

[Previous page](https://forum.getkirby.com/t/setcontent-error/14713.md?page=1)
