Changes between Version 36 and Version 37 of MenusPlugin
- Timestamp:
- Mar 11, 2015, 12:03:51 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MenusPlugin
v36 v37 1 = Hierarchical navigation menus =2 1 [[PageOutline(2-5,Contents,pullout)]] 3 2 4 == Description == 5 With release 0.11, Trac allows existing items to be [http://trac.edgewall.org/wiki/TracNavigation customized] on the main and meta navigation bars. This plugin extends that functionality to: 6 * Add items to navigation menus 7 * Hierachical organization (using [http://users.tpg.com.au/j_birch/plugins/superfish/ Superfish]) 8 9 Note: CSS modifications might be needed to fit your Trac theme. 3 = Hierarchical navigation menus 4 5 == Description 6 7 With release of Trac 0.11, existing items can be [http://trac.edgewall.org/wiki/TracNavigation customized] on the main and meta navigation bars. This plugin extends that functionality to: 8 * Add items to navigation menus. 9 * Hierachical organization, for example using [http://users.tpg.com.au/j_birch/plugins/superfish/ Superfish]. 10 11 '''Note''': CSS modifications might be needed to fit your Trac theme. 10 12 11 13 See also: NavAddPlugin, TracTabPlugin. 12 14 13 == Demo == 15 == Demo 16 14 17 See it in action: http://code.optaros.com/trac/oforge/ 15 18 16 == Bugs/Feature Requests ==19 == Bugs/Feature Requests 17 20 18 21 Existing open bugs and feature requests for MenusPlugin are [query:status!=closed&component=MenusPlugin&order=priority here]. All bugs and feature requests (open and closed) for MenusPlugin are [query:component=MenusPlugin&order=priority here]. … … 20 23 If you have any issues, create a [/newticket?component=MenusPlugin&owner=cbalan new ticket]. 21 24 22 == Download, Source == 25 [[TicketQuery(component=MenusPlugin&group=type,format=progress)]] 26 27 == Download, Source 23 28 24 29 Download the [download:menusplugin zipped source], check out MenusPlugin [/svn/menusplugin from here using Subversion], or [source:menusplugin browse the source] with Trac. 25 30 26 == Installation == 27 31 == Installation 32 33 To install this plugin, folow these steps: 28 34 1. Install the plugin following the steps in the [http://trac.edgewall.org/wiki/TracPlugins#InstallingaTracPlugin Trac Documentation]. 29 1. Add '''tracmenus.* = enabled''' to the `[components]` section of ''trac.ini''or enable via !WebAdmin.35 1. Add '''tracmenus.* = enabled''' to the `[components]` section of `trac.ini` or enable via !WebAdmin. 30 36 1. Restart the Trac server. 31 37 1. Proceed to the [#Configuration Configuration] section. 32 38 33 == Configuration == 39 == Configuration 40 34 41 As usual, configuration takes place in the `trac.ini` file. Most interesting things first - they are to be found in the `[mainnav]` section: Here you set up your menu items. Syntax is: `<item_name>.<property> = <value>` - where `<item_name>` is either the already existing handler (e.g. "wiki" for the wiki item, "tickets" for the tickets, "newticket" for the "New Ticket" item, a.s.o.) - or a term which ''must not exist'' for a brand new item to be introduced (as e.g. the "Team Tools" in the [#Example Examples] section). A special case is e.g. `top` to make a new item appearing on top level. 35 42 36 === Defining your menus in the `[mainnav]` and `[metanav]` sections === 37 So here come the available properties and their possible values: 43 === Defining your menus in the `[mainnav]` and `[metanav]` sections 44 45 The available properties and their possible values are: 46 38 47 ||'''Property'''||'''Description'''||'''Example value'''|| 39 48 ||enabled||Must be set to `1` for self defined items to be shown. Can be set to `0` to (temporarily) disable an item.||1|| … … 46 55 ||perm||For items like reports, `hide_if_disabled` does not work, since this is no component. Though, it should not be displayed if it is not available. So you can handle this by defining the required permission.||REPORT_VIEW|| 47 56 48 === Menu options === 57 === Menu options 58 49 59 - '''inherit''': Useful when a menu should receive items from another menu 50 60 {{{ … … 55 65 }}} 56 66 57 === Defining the behaviour in the `[menu-custom]` section === 67 === Defining the behaviour in the `[menu-custom]` section 68 58 69 Here you can (re-)define (i.e. customize) the behavior of MenusPlugin. Usually, you won't need that - since the defaults are fine. But in case you need a toy to play with - here we go: 59 70 … … 65 76 The `serve_ui_files` option you will only need to override if you want to apply your own styles and need to suppress the original ones for this. Rare case - but who knows? 66 77 67 == Example ==78 == Example 68 79 69 80 [http://code.optaros.com/trac/oforge/ Demo] config: … … 185 196 }}} 186 197 187 == Screenshots == 198 == Screenshots 199 200 The menu item '''Tickets''' on the Navigation bar has been extended with drop-down functionality: 201 188 202 [[Image(menusplugin.png, width=500)]] 189 203 190 == Recent Changes ==204 == Recent Changes 191 205 192 206 [[ChangeLog(menusplugin, 3)]] 193 207 194 == Author/Contributors ==208 == Author/Contributors 195 209 196 210 '''Author:''' [wiki:cbalan] [[BR]] 197 '''Maintainer:''' [ wiki:cbalan] [[BR]]211 '''Maintainer:''' [[Maintainer]] [[BR]] 198 212 '''Contributors:''' [wiki:izzy], [wiki:rjollos]