First of all, I would not store the URL but the URI.
Then you can get the page object like this:
<?php
if($p = $item->projectlink()->toPage()):
echo $p->title();
endif;
First of all, I would not store the URL but the URI.
Then you can get the page object like this:
<?php
if($p = $item->projectlink()->toPage()):
echo $p->title();
endif;