2017 © Pedro Peláez
 

magento-module easy-navigation

A simple module to customize your navigation menu

image

bennoislost/easy-navigation

A simple module to customize your navigation menu

  • Monday, October 26, 2015
  • by bennoislost
  • Repository
  • 1 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Easy Navigation

Simple navigation styling and extra category attributes for Magento., (*1)

Installation

Composer

php composer.phar require bennoislost/easy-navigation

Then refresh Magento caches., (*2)

Usage

Select a catalog/category attribute for use

Add the following snippit to your modules config.xml inside the default node. Replace my_new_catalog_attr with the attribute code you wish to be displayed in your navigation., (*3)

<frontend>
    <category>
        <collection>
            <attributes>
                <my_new_catalog_attr/>
            </attributes>
        </collection>
    </category>
</frontend>

Display a selected attribute

Copy the following templates to your design package / theme., (*4)

  • app/design/frontend/base/default/template/bennoislost/easy-navigation/single-level.phtml
  • app/design/frontend/base/default/template/bennoislost/easy-navigation/level-with-children.phtml

You can now use the following snippet to return the catalog/category attribute value in your template., (*5)

$this->getMenu()->getCategoryData()->getData('my_new_catalog_attr');

Replace my_new_catalog_attr with your attribute code., (*6)

With blocks in Magento these can be extended and replaced :), (*7)

Support

If you have any issues with this extension, open an issue on GitHub (see URL above), (*8)

Contribution

Any contributions are highly appreciated. The best way to contribute code is to open a pull request on GitHub., (*9)

Developer

Ben McManus - @bennoislost, (*10)

Licence

MIT, (*11)

(c) 2015 Ben McManus, (*12)

The Versions

26/10 2015

dev-master

9999999-dev

A simple module to customize your navigation menu

  Sources   Download

MIT

The Requires

 

by Ben McManus

26/10 2015

0.0.1

0.0.1.0

A simple module to customize your navigation menu

  Sources   Download

MIT

The Requires

 

by Ben McManus