Changes between Version 37 and Version 38 of MenusPlugin
- Timestamp:
- Jun 8, 2015, 1:32:37 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MenusPlugin
v37 v38 9 9 * Hierachical organization, for example using [http://users.tpg.com.au/j_birch/plugins/superfish/ Superfish]. 10 10 11 See it in action: http://code.optaros.com/trac/oforge/ 12 11 13 '''Note''': CSS modifications might be needed to fit your Trac theme. 12 14 13 15 See also: NavAddPlugin, TracTabPlugin. 14 16 15 == Demo16 17 See it in action: http://code.optaros.com/trac/oforge/18 19 17 == Bugs/Feature Requests 20 18 21 19 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]. 22 20 23 If you have any issues, create a [/newticket?component=MenusPlugin &owner=cbalannew ticket].21 If you have any issues, create a [/newticket?component=MenusPlugin new ticket]. 24 22 25 23 [[TicketQuery(component=MenusPlugin&group=type,format=progress)]] … … 31 29 == Installation 32 30 33 To install this plugin, fol ow these steps:31 To install this plugin, follow these steps: 34 32 1. Install the plugin following the steps in the [http://trac.edgewall.org/wiki/TracPlugins#InstallingaTracPlugin Trac Documentation]. 35 33 1. Add '''tracmenus.* = enabled''' to the `[components]` section of `trac.ini` or enable via !WebAdmin. … … 39 37 == Configuration 40 38 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.42 43 === Defining yourmenus in the `[mainnav]` and `[metanav]` sections39 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 and so on) - or a term which ''must not exist'' for a brand new item to be introduced (as the "Team Tools" in the [#Example Examples] section). A special case is `top` to make a new item appearing on top level. 40 41 === Defining menus in the `[mainnav]` and `[metanav]` sections 44 42 45 43 The available properties and their possible values are: … … 60 58 {{{ 61 59 #!ini 62 63 64 60 # dummy example - add mainnav items to context menu. 61 [ctxtnav] 62 inherit= mainnav 65 63 }}} 66 64 67 === Defining the behaviour in the `[menu-custom]` section 68 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: 70 71 Syntax is quite easy, it's just `<option> = <value>`. Available options are: 65 === Defining behaviour in the `[menu-custom]` section 66 67 Although the defaults are fine, you can customize the behavior of MenusPlugin. The syntax for the options is similar to a key-value pair: `<option> = <value>`. Available options are: 68 72 69 ||'''Option'''||'''Description'''||'''Default'''|| 73 70 ||managed_menus||Which menus should be maintained by the plugin.||mainnav,metanav|| 74 ||serve_ui_files||Whether the required UI files (i.e. `*.js` and `*.css` files)should be linked into the page. Boolean value.||1||75 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?71 ||serve_ui_files||Whether the required UI files, ie `*.js` and `*.css` files, should be linked into the page. Boolean value.||1|| 72 73 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. 77 74 78 75 == Example 79 76 80 77 [http://code.optaros.com/trac/oforge/ Demo] config: 81 {{{ 82 #!ini 78 {{{#!ini 83 79 [mainnav] 84 80 tags = disabled