Documentation

Light-weight, fast, simple and powerful!
Share This
Translations of this page?:

display a breadcrumb

Wolf has a small and simple piece of code ready-made for displaying breadcrumbs:

<?php echo $this->breadcrumbs(); ?>

Put it in your Layout where you want the breadcrumbs to appear.

If you want to use a different separator, do it like this:

<?php echo $this->breadcrumbs('-'); ?>

You can use any symbol you like as the separator (plus, minus, colon, semicolon, etc.), as long as you keep it between the quote marks inside the braces: ('here').

If you want to use a backslash as the separator, it needs to be “escaped”, that is, written twice:

$this->breadcrumbs('\\');

 
howto/display_a_breadcrumb.txt · Last modified: 2011-09-12 00:46 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Copyright 2010 wolfcms.org / design by yello studio / Wolf CMS Inside