Wayfinder beta2
This is a public beta for the future replacement of DropMenu.
Submitted: Aug 4th 2006 | License: GPL - GNU Public | Downloads: 1503
This resource has been deprecated.
Description
Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire.
Included in the zip is an example on how to create the mollio menu and some menus from CSSplay.
To view some example menus created with Wayfinder go here: http://modxtest.muddydogpaws.com/wayfinder_documentation.html
Instructions
Copy the contents of the file snippet.wayfinder.tpl.php into a new snippet named Wayfinder.
Create a new folder under assets/snippets named wayfinder.
Copy the file wayfinder.inc.php into the newly created folder.
To get the default menu output use the following snippet call: [[Wayfinder? &startId=`0`]]
For documentation on all of the paramters refer to the file wayfinder.documentation.html
Updates
- Fixed bug for assigning parentClass
- Added parameter rowIdPrefix to create a custom id for each menu item
- Removed ultimateparent functionality, if you want to use this, nest the snippet calls.
- Added parentRowHereTpl, this tempalte is used on a folder if it is the current doc
- Added selfClass, this sets a class for the current doc only (hereClass sets a class for the current doc and its parents)