|
Cookbook /
ActionMenuSummary: Drop-down menu to page actions (Edit, History, Attach...) instead of links.
Version: 20111004
Prerequisites:
Status: Beta
Maintainer: Petko
Discussion: ActionMenu-Talk
DescriptionA drop-down menu to page actions (Edit, History, Attach...) instead of links..
When a user selects some action from the menu, the current page is open with this action, for example On some wiki designs a drop-down menu may be more convenient than a list of links. For example, in minimalist or mobile skins, a drop-down menu takes less screen area. InstallationCopy actionmenu.phpΔ to your /cookbook/ directory. Add to config.php such a line: include_once("In the page Site.PageActions, or in a SideBar, GroupHeader or GroupFooter, add the following markup:
The markup should start at the beginning of a line. The actions are in the format The recipe tries to work in a smart way:
It is possible to display some short text on the same line, before and after the drop-down select-box: (:actions "Text before" browse="$[View]" edit="$[Edit]" "Text after":) (:actions "" browse="$[View]" edit="$[Edit]" "Text after":) Larger example:
UsageSelect an action from the drop-down menu. If your browser has JavaScript enabled, the action will open immediately. Users with JavaScript disabled can press on a "Go" button (that button is hidden if JavaScript is enabled). Change log / Release notes
See also
ContributorsRecipe written and maintained by Petko. CommentsSee discussion at ActionMenu-Talk. User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |