Last active
August 29, 2015 14:16
-
-
Save eklect/89a52a54c87ba317fdea to your computer and use it in GitHub Desktop.
Concrete 5.6 → Get Page URL with Loader Navigation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$nav = Loader::helper('navigation'); | |
$page = Page::getByPath('/about-us'); OR $page = Page::getByID($page_id_here); | |
$url = $nav->getCollectionURL($page); | |
//BONUS breadcrumbs :) | |
$breadcrumbs = $nav->getTrailToCollection($page); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment