Jump to content

Breadcrumb Page Path


Recommended Posts

Hi Guys,

Right now, I am using parents as breadcrumbs but I have pages under a parent page just to keep things organized. The pages are called in other areas of the site. 

I am trying to create user path history breadcrumbs.

Meaning: If the user clicked a link to the page, it will show the path he took. Has anyone done this? Would love to see who has before I dive in.


Link to comment
Share on other sites

PW has an option to keep a history of pageviews in $session. You use a setting in /site/config.php to define how many history items you want to keep...

// Keep the last 10 pageviews in the session history
$config->sessionHistory = 10; 

 ...and then get a multi-dimensional array of history data with...

$history = $session->getHistory();

You could use this history to build your breadcrumb trail from.


  • Like 6
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...