Topic: Breadcrumb Navigation Plugin
Works for multiple nested folder.
Image Preview
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>