Building breadcrumbs
A breadcrumb trail provides a trail for the user to follow back to the starting point of a Web site and usually appears horizontally across the top of a Web page, below any title bars or headers.
A breadcrumb can be history based, in which case it provides links back to each previous page that the user navigated through in order to get to the current page, or content based (hierarchical structure of the content) in which case the breadcrumb shows the parent pages of the current page, usually with an arrow used as a hierarchy separator.
In the following example, a breadcrumb displays a context Keyword and all its ancestors using the TaxonomyFactory and TaxonomyFilters:
TaxonomyFactory taxfactory = new TaxonomyFactory();
CompositeFilter breadcrumbFilter = new CompositeFilter();
breadcrumbFilter.DepthFiltering(0, DepthFilter.FilterDown);
breadcrumbFilter.DepthFiltering(DepthFilter.UnlimitedDepth, DepthFilter.FilterUp);
Keyword regionKeyword = taxfactory.GetTaxonomyKeyword(Request.QueryString["keyword"]);
Keyword breadcrumbKeyword =
taxfactory.GetTaxonomyKeywords("tcm:42-193-512", breadcrumbFilter,
regionKeyword.KeywordUri, new TaxonomyListFormatter());