Skip to content

Instantly share code, notes, and snippets.

@somatonic
Created March 28, 2012 15:04
Show Gist options
  • Save somatonic/2226916 to your computer and use it in GitHub Desktop.
Save somatonic/2226916 to your computer and use it in GitHub Desktop.
PW breadcrumb
foreach($page->parents as $p) echo "<a href='$p->url'>$p->title</a>";
@yckart
Copy link

yckart commented Oct 17, 2013

Home
Home / Page
Home / Page / Subpage

<? foreach ($page->parents as $p) echo "<a href='$p->url'>$p->title</a> / "; echo "$page->title"; ?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment