At the top of the template, before anything else, place:
include("tools/trail.php"); ?>
Then, in the place where you want the trail links to appear, place:
displayTrail("",", "); ?>
If you wish to customize it, you can change the second parameter to change the separator between the links. This would use hyphens to separate links:
displayTrail(""," - "); ?>
You can also add a third parameter to set the max number of links shown. This would set it to 5 links:
displayTrail("",", ",5); ?>
Comments