Skip to content

macopedia/Maco-Nav-Menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 

Repository files navigation

Macopedia Easymenu

Navigation menu for Magento configurable from the backend (admin panel).

If you set the cache lifetime for a block, e.g.

<reference name="easymenu">
    <action method="setCacheLifetime"><value>43200</value></action>
</reference>

Generated menu will not have an "current-page" class for the anhor. As we don't want it to be cached. You can still add this class by some little js magic:

$('#nav a').each(function () {
    var self = $(this);
    if (window.location.href === self.attr('href')) {
        self.addClass('current-page');
    }
});

About

Configurable navigation menu for Magento CE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published