1 (edited by tovic 2014-02-21 08:40:22)

Topic: Breadcrumb Navigation Plugin

Works for multiple nested folder.

Image Preview

http://i57.tinypic.com/15ezoeb.png

Installation

1. Download and extract this file, put the breadcrumb folder with its contents in plugins folder.

2. Update your config.php file:

<?php
    return array(
        ...
        ...
        ...
        'plugins' => array(
            'markdown',
            'sitemap',
            'breadcrumb' // <= Activation
        ),
        'breadcrumb_config' => array( // <= Configuration
            'classes' => array( // <= List of item's HTML classes
                'item' => 'item',
                'current' => 'active'
            ),
            'labels' => array( // <= List of item's readable text or labels
                'home' => 'Home'
            ),
            'divider' => ' <span class="divider">/</span> '
        )
    );

Updating Template File

Place this code in your navbar.html (for example):

<nav class="breadcrumb">
  <?php Morfy::factory()->runAction('breadcrumb'); ?>
</nav>

Tips

This is an example configuration if you want to make breadcrumb navigation as a list item:

    'breadcrumb_config' => array(
        ...
        ...
        'divider' => '</li><li>'
<nav class="breadcrumb">
  <ul>
    <li>
      <?php Morfy::factory()->runAction('breadcrumb'); ?>
    </li>
  </ul>
</nav>
XSS Testing <script>alert('HIYAA!!!');</script>

tovic's Website

Re: Breadcrumb Navigation Plugin

Good Job!

Monstra Loves You! Give some love back!

Re: Breadcrumb Navigation Plugin

Thanks smile

XSS Testing <script>alert('HIYAA!!!');</script>

tovic's Website

Re: Breadcrumb Navigation Plugin

Good Job tovic smile

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Breadcrumb Navigation Plugin

nice bro..

I'm not like them but I can pretend.