# Display text from block on other page

**URL:** <https://forum.getkirby.com/t/display-text-from-block-on-other-page/30473>\
**Category:** Questions\
**Tags:** v4\
**Created:** [January 11, 2024, 1:50pm UTC](https://forum.getkirby.com/t/display-text-from-block-on-other-page/30473 "2024-01-11T13:50:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![afplaktape](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@afplaktape](https://forum.getkirby.com/u/afplaktape)\
**Post date:** [January 11, 2024, 1:50pm UTC](https://forum.getkirby.com/t/display-text-from-block-on-other-page/30473/1 "2024-01-11T13:50:13Z")

</div>

I have an article page that has a block field containing text, headings and images. For the frontend of the overview page I’d like to access the first text block from the blocks field. Is this possible and how would I go about this?

---

<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:** [January 11, 2024, 2:02pm UTC](https://forum.getkirby.com/t/display-text-from-block-on-other-page/30473/2 "2024-01-11T14:02:33Z")

</div>

> [@afplaktape](#):
>
> Is this possible and how would I go about this?

Yes, of course. Assuming you are looping through the children on the parent:

```auto
<?php foreach ($page->children()->listed() as $article): ?>
   <?php if ($block = $article->nameOfBlocksField()->toBlocks()->filterBy('type', 'text')->first()): ?>
     <?= $block ?>
   <?php endif ?>
<?php endforeach ?>

```

```auto

```

---

<div class="post-metadata">

**Author:** ![afplaktape](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@afplaktape](https://forum.getkirby.com/u/afplaktape)\
**Post date:** [January 11, 2024, 2:03pm UTC](https://forum.getkirby.com/t/display-text-from-block-on-other-page/30473/3 "2024-01-11T14:03:45Z")

</div>

Wauw thanks again Sonja! 🙂
