Breadcrumb Navigation [v0.1]

Maintainer(s): MarijnKampf
Supported by: Community

The BreadcrumbNavigation module is a self contained module that allows for greater flexibility and styling of breadcrumbs using the SilverStripe templating engine.

Requirements

  • SilverStripe Trunk

Install and setup

BreadcrumbNavigation should be in your sites root folder.

Set options in your mysite/_config.php BreadcrumbNavigation::$includeHome = false; BreadcrumbNavigation::$includeSelf = true; BreadcrumbNavigation::$maxDepth = 20; BreadcrumbNavigation::$stopAtPageType = false; BreadcrumbNavigation::$showHidden = false; BreadcrumbNavigation::$homeURLSegment = 'home';

In your template include either:

<% include BreadcrumbNavigationTemplate %> 

or

<% include BreadcrumbNavigationTemplateAllLinked %>

Advanced use

If you would like to add additional items to the Breadcrumb trail (e.g. for URL parameter actions) you can use AddAfter($object) and AddBefore($object) functions. You only need to define the attributes you use in your templates. These are Link and MenuTitle for the supplied templates. Define isSelf if you are not linking the current page.

$do = new DataObject();
$do->Link = $this->Link() . "show";
$do->MenuTitle = "Menu title";
$do->isSelf = true;
$this->AddAfter($do);

Release(s)

  • Latest release

    Version: [v0.1]
    Date: 2011-11-20
    Compatible with: SilverStripe 2.4
    Download: No Download Available

    Git access:
    Branch: master
    Tag: HEAD

  • Latest master build

    To get a preview of our next release, download the latest build of unstable git master branch here. Please be careful: this is more likely to contain bugs, especially on modules undergoing a lot of development.

    SHA hash: ec6543e8c307c0cc2551b5f63e65a8491a7c8372
    Build Date: 2012-07-04
    Download: Silverstripe-Module-BreadcrumbNavigation-master-HEAD.tar.gz

    Unstable Git access: git://github.com/marijnkampf/Silverstripe-Module-BreadcrumbNavigation.git

 
 

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.