Vocabulary "Mock Menu"
Summary
This module creates a "mock menu" from a vocabulary, with links to the terms at a given base-path. This is very handy for providing a menu that links to a view with a Taxonomy:Term ID argument.
- The impetus was the need to gives users a simple way to select a category when browsing through recently updated pages for lasqueti's local artists and businesses.
- The original idea comes from : http://drupal.org/node/42605
- The module is used to create the "Category" menu in the left sidebar at: http://lasqueti.ca/marketplace/browse/listings
Overview
Requires:
- a vocabulary to create the menu items from; I use the primary "Category" vocabulary here;
- a base-path for the menu links - the term ID will be added to this base-path; my base-path is "marketplace/browse/listings"
Options:
- most useful when combined with a View using a Taxonomy:Term ID argument; I use the 'market_listing' view to generate this menu as a "summary view" in a block displayed at the base-path.
- The "depth" of traversal can be set to limit the menu depth; I use a depth of 2 here.
Source Code
All code snippets, modules, and modulettes on this site are covered by GPL - see license.txt
The source code is attached below...
Full instructions for installing and using this module are included as comments in the source file.
Attachment | Size |
---|---|
category_mock_menu.zip | 13.95 KB |