Get the parent page full URL
Permalink 1 user found helpfulI am her: home > blog > blog entry
In blog_entry.php i put this two lines:
<h1><!--parent link--> <?php $parent = Page::getByID($c->getCollectionParentID(), 'ACTIVE'); ?>; <?php echo $parent->getCollectionPath(); ?> </h1>
The Result: /blog
http://documentation.concrete5.org/api/index.html...
In page templates, the current page object is available as the variable $c. In block templates, you can get the current page object using $c = Page::getCurrentPage();.
With the current page object, I believe you can use methods in classes like these:
http://documentation.concrete5.org/api/class-Concrete.Core.Page.Col...
http://documentation.concrete5.org/api/class-Concrete.Core.Page.Pag...
You can try this: