get link atribute from express

Permalink
I'm trying to get a link that I've created on express with a page selector.

entity: local (plural: locais)
atribute: link_local

<?php if (count($locais)) {
foreach($locais as $local) { ?>
<tr>
<td><?=$local->getNomeLocal()?></td>
<td><?=$local->getMoradaLocal()?></td>
<td><?=$local->getLinkLocal()?></td>
</tr>
<?php } ?>

the link does not appear, bur the rest of the informations does.

can I get some help?

 
duarted replied on at Permalink Reply
after look through other blocks, try thy and it worked:

<?php if (count($locais)) {
foreach($locais as $local) { ?>
<tr>
<td width="40%"><font size="+1"><b><?=$local->getNomeLocal()?></b></font></td>
<td width="50%"><?=$local->getMoradaLocal()?></td>
<td width="10%">
<?php if (!empty($local->getLinkLocal())) {
$linkToC = Page::getByID($local->getLinkLocal());
$linkURL = (empty($linkToC) || $linkToC->error) ? "" : Loader::helper("navigation")->getLinkToCollection($linkToC);
echo "<a href='$linkURL'>ver</a>";
} ?>
</td>
</tr>
<?php } ?>