View Summary "Mock Menu"
Summary
This very tiny module creates a "mock menu" from a views summary - a menu item is created for each query, or potential argument value, in the views summary. This is handy for providing a menu that links to the various pages provided when a view has an argument.
- The impetus was the need to gives users a simple way to select an argument value - sometimes exposed filters are just not what you want (even though they are pretty cool when themed into a block: http://www.angrydonuts.com/displaying_views_exposed_filters - or get the module http://drupal.org/project/views_filterblock ).
- The original idea and code comes from : http://drupal.org/node/42605
- The module is used, for example, to create the "Photo Albums" menu in the left sidebar at: http://lasqueti.ca/photos/album
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 |
---|---|
summary_view_mock_menu.zip | 13.03 KB |