# Access Page data with just the guid

**URL:** <https://forum.getkirby.com/t/access-page-data-with-just-the-guid/27854>\
**Category:** Questions\
**Tags:** v3\
**Created:** [February 14, 2023, 1:00pm UTC](https://forum.getkirby.com/t/access-page-data-with-just-the-guid/27854 "2023-02-14T13:00:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![simgy](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@simgy](https://forum.getkirby.com/u/simgy)\
**Post date:** [February 14, 2023, 1:00pm UTC](https://forum.getkirby.com/t/access-page-data-with-just-the-guid/27854/1 "2023-02-14T13:00:08Z")

</div>

Hi,  
I am completely lost right now and I don’t find a way to make it work.

I have to pages (which are not related). The main pages needs to point on the siblings child.  
I have the link already in the backend (via a query page in the blueprint.  
If I access this field I get:

```auto
Kirby\Cms\Field Object
(
    [partner] => - page://rgGhBVnRje94h5mU
)

```

But if I try to access the url or the title of this page, I fail. usually I use the

```auto
page('name')

```

or

```auto
site->children()->template('TemplateName')->....

```

But neither seems to work.

So what I want is the url and the title of this: page://rgGhBVnRje94h5mU

Thanks in advance,  
Simon

---

<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 14, 2023, 1:01pm UTC](https://forum.getkirby.com/t/access-page-data-with-just-the-guid/27854/2 "2023-02-14T13:01:38Z")

</div>

Use `toPage()` (or `toPages()` for multiple pages) method on the field, which will give a a page object.

---

<div class="post-metadata">

**Author:** ![simgy](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@simgy](https://forum.getkirby.com/u/simgy)\
**Post date:** [February 14, 2023, 1:04pm UTC](https://forum.getkirby.com/t/access-page-data-with-just-the-guid/27854/3 "2023-02-14T13:04:25Z")

</div>

Thank you very much for your amazingly quick reply - as usual.
