Edgewall Software

Changes between Version 2 and Version 3 of 1.3/TracNavigation


Ignore:
Timestamp:
Apr 10, 2017, 10:53:44 PM (2 years ago)
Author:
Ryan J Ollos
Comment:

Minor edits.

Legend:

Unmodified
Added
Removed
Modified
  • 1.3/TracNavigation

    v2 v3  
    33The main and meta navigation entries can be customized in several ways. The `[mainnav]` and `[metanav]` configuration sections can be used to customize the navigation item text and link, change the ordering of the navigation items, disable them and add new ones.
    44
    5 The primary attributes which can be customized are `href`, `label`, `order` and `permission`.
     5The primary attributes that can be customized are `href`, `label`, `order` and `permission`.
    66
    77=== `[mainnav]` #mainnav-bar
     
    1111** [=#Example Example] **
    1212
    13 In the following example we rename the link to WikiStart //HOME//, and make the //View Tickets// entry link to a specific report.
     13In the following example we rename the link to WikiStart //Home//, and make the //View Tickets// entry link to a specific report.
    1414{{{#!ini
    1515[mainnav]
     
    1818}}}
    1919
    20 Note the entries on the main navigation are displayed in uppercase regardless of the casing of the `label`.
     20Note the entries on the main navigation are displayed in uppercase regardless of the casing of the `label`, unless this aspect of the styling is overridden through [TracInterfaceCustomization#SiteAppearance interface customization].
    2121
    2222=== `[metanav]` #metanav-bar
     
    3939to the navigation. A new entry can be defined by providing a name with value `enabled`. At a minimum, the `href` attribute should be specified to define a useful navigation entry. If the `label` attribute is not defined the entry's name will be used for the label.
    4040
    41 The following example creates two new navigation items, one named //MY REPORTS// and the other named //builds//. //My Reports// is only visible to users with `REPORT_VIEW` permission.
     41The following example creates two new navigation items, one named //My Reports// and the other named //builds//. //My Reports// is only visible to users with `REPORT_VIEW` permission.
    4242{{{#!ini
    4343[mainnav]
     
    5656=== Relocating Entries #nav-relocating-entries
    5757
    58 Navigation entries provided by Trac and plugin can be moved from the meta navigation bar to the main navigation bar, and vise-versa. The entry should be defined in the desired category as if it was a new entry, but existing attributes of the navigation item will be preserved. For example, to move the //Admin// entry to the metanav and rename it to //Administration//:
     58Navigation entries provided by Trac and plugins can be moved from the meta navigation bar to the main navigation bar, and vise-versa. The entry should be defined in the desired category as if it was a new entry. For example, to move the //Admin// entry to the metanav and rename it to //Administration//:
    5959{{{#!ini
    6060[metanav]
     
    6262admin.label = Administration
    6363}}}
     64
     65Attributes of the navigation item that are not overridden by the configuration will be preserved.
    6466
    6567=== URL Formats
     
    102104=== Context Navigation #ctxtnav-bar
    103105
    104 Note that it is still not possible to customize the '''contextual navigation bar''', ie the one usually placed below the main navigation bar.
     106Note that it is still not possible to customize the '''contextual navigation bar''', i.e. the one usually placed below the main navigation bar.
    105107
    106108----