How to get parent url?

Permalink
Hi all,
it's probably something very easy, but I can't find it.

How can I get url to parent page?
I want to put this code to theme, so on all pages (except home page only, of course) there will be link "up" to parent page.

MysteriousCleon
View Replies: View Best Answer
djoniba replied on at Permalink Reply
djoniba
http://www.concrete5.org/marketplace/addons/manual-nav/

Think this one can do it for you.
MysteriousCleon replied on at Permalink Best Answer Reply
MysteriousCleon
Ok, found it, problem solved. Just in case anyone else would have this problem:
<?php
$page=Page::getByID($c->getCollectionParentID());
$nh = Loader::helper('navigation');
$URL = $nh->getCollectionURL($page);
echo $URL;
?>
keeasti replied on at Permalink Reply
keeasti
In case you ever want to get the ultimate parent, this can help
http://www.concrete5.org/community/forums/customizing_c5/show_paren...