Kirby 3.8.0-rc.2 uuid find page

I’m currently trying 3.8.0-rc.2.

I love the new uuid and want to implement it. I’m trying to find a page by uuid… shouldn’t this work?

$site->index()->findBy('uuid','Xv243VTLMBKva7gu')->url()

But findBy returns NULL.

You should use like page://Xv243VTLMBKva7gu. Because toString will always create the full UUID with schema.

$site->index()->findBy('uuid', 'page://Xv243VTLMBKva7gu')->url();

or

$site->index()->find('page://Xv243VTLMBKva7gu')->url();

or

$site->find('page://Xv243VTLMBKva7gu')->url();
1 Like

Just curious, will page('page://Xv243VTLMBKva7gu') also work? I’ve yet to test the new RC

1 Like

Nice! Of course, page() helper function already use kirby()->site()->find($id).

Thank you both!