WWW::MenuGrinder::Plugin::ActivePath - WWW::MenuGrinder plugin that finds a path to the currently active page.
version 0.01_01
WWW::MenuGrinder::Plugin::ActivePath is a plugin for WWW::MenuGrinder. You should not use it directly, but include it in the plugins section of a WWW::MenuGrinder config.
WWW::MenuGrinder::Plugin::ActivePath
WWW::MenuGrinder
plugins
When loaded, this plugin will visit each item of the menu, comparing any item with a location attribute to the current URL path. The item that best matches the current path will have its active key set to "yes", and each of its ancestors will have its active key set to "child".
location
active
None.
In order to load this plugin your WWW::MenuGrinder subclass must implement the method path returning a path name for the current request.
path
WWW::MenuGrinder::Plugin::Visitor.
WWW::MenuGrinder::Plugin::Visitor
It's advisable to load this plugin after any plugins that may remove items from the menu, to ensure that the chain of active items is unbroken.
Andrew Rodland <andrew@hbslabs.com>
This software is copyright (c) 2009 by HBS Labs, LLC..
This is free software; you can redistribute it and/or modify it under the same terms as perl itself.
To install WWW::MenuGrinder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::MenuGrinder
CPAN shell
perl -MCPAN -e shell install WWW::MenuGrinder
For more information on module installation, please visit the detailed CPAN module installation guide.