Nicholas Cheek

LITTLE ROCK WEB DEVELOPER

Breadcrumbs from url

ExpressionEngine 2.x (not tested on earlier version) breadcrumb navigational menu. This menu allows you to create breadcrumbs without having to do any of the work. This plugin uses the url you are on, excluding your site name, to display each navigational section to your end user.

Features

Usage

1. exp:breadcrumb:urls - Puts urls on page with associated links. Basic Usage: {exp:breadcrumb:urls} example: if your url is yoursite.com/dev/index.php/employment/employment-application, breadcrumbs would be dev >> index.php >> employment >> employment-application

2. exp:breadcrumb:urls split="->" - split will put whatever characters you desire between the links. Default is ">>". The dividers are wrapped in span tags for easier styling. {exp:breadcrumb:urls split="->"} produces yourpage -> employment -> employment-application

3. exp:breadcrumb:urls replace="Home" - will replace "index.php" with whatever word you want it to say (this is for whoever has index.php still in the url) changes: dev -> index.php -> employment -> employment-application to: dev -> Home -> employment -> employment-application

4. exp:breadcrumb:urls type="upper" - types: upper,lower,words | pretty self explanatory, upper = uppercase, lower = lowercase and words caps first letter type="words" changes: dev -> index.php -> employment -> employment-application to: Dev -> Home -> Employment -> Employment-application

5. exp:breadcrumb:urls tag="list" - tags: list,div,span tag="list" changes: dev -> index.php -> employment -> employment-application

to:
                <ul>
                <li>dev</li>
                <li>index</li>
                <li>employment</li>
                <li>employment-application</li>
                </ul>
 

6. exp:breadcrumb:urls class="yourclass" - class adds the class you want to the div, ul, or span tags so you're able to style the links individually tag="list" changes: dev -> index.php -> employment -> employment-application Complete options {exp:breadcrumb:urls split="." replace="Home" type="words" tag="div" class="testing"}

7. exp:breadcrumb:urls change="old|new"- gives you the ability to change your segments to names without having to rename the page. Each change is seperated by a comma and each old value and new value is separated by a pipe |.

change="dev|development,employment|employee"

changes: dev -> index.php -> employment -> employment-application
changes to : developtment -> index.php -> employee -> employment application

LITTLE ROCK WEB DEVELOPER

Living the dream.

nick@nicholascheek.com