Edgewall Software

Changes between Version 6 and Version 7 of TracNavigation


Ignore:
Timestamp:
Dec 7, 2007, 4:48:08 PM (16 years ago)
Author:
Christian Boos
Comment:

expand that documentation a bit

Legend:

Unmodified
Added
Removed
Modified
  • TracNavigation

    v6 v7  
    1 = TracNavigation =
    2 see wiki:0.11/TracInterfaceCustomization, which contains a copy of this.
     1= Trac Navigation =
    32
    4 Quick, untested, example:
     3Starting with Trac 0.11, it is now possible to customize the main and meta navigation entries in some basic ways.
     4
     5The new `[mainnav]` and `[metanav]` configuration sections can now be used to customize the text and link used for the navigation items, or even to disable them.
     6
     7`[mainnav]` corresponds to the main tab line containing entries such as ''Wiki'', ''Timeline'', ''Roadmap'', ''Browse Source'' and so on.
     8
     9`[metanav]` corresponds to the sequence of links that are by default positioned above the main navigation bar and below the ''Search'' box. It contains the ''Log in'', ''Logout'', ''Help/Guide'' etc. entries.
     10
     11In the following example, we rename the link to the Wiki start "Home", and hide the "Help/Guide" link.
     12We also make the "View Tickets" entry link to a specific report.
     13
    514{{{
    615[mainnav]
    7 tickets.href = /report/3
     16wiki.label = Home
     17tickets.href = /report/24
     18
     19[metanav]
     20help = disabled
    821}}}
    922
    10 TODO:
    11  - need a list of defaults -> create a macro?
    12  - for now, take documentation from r5251 and later document those ini sections from the code
    13 
    1423----
    15 See also the TracHacks:NavAddPlugin (still needed for adding entries)
     24See also: TracInterfaceCustomization, the TracHacks:NavAddPlugin (still needed for adding entries)