<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=TracNavigation</id>
	<title>TracNavigation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=TracNavigation"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=TracNavigation&amp;action=history"/>
	<updated>2026-04-20T23:42:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=TracNavigation&amp;diff=312&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; == Trac Navigation ==  Starting with Trac 0.11, it is now possible to customize the main and meta navigation entries in some basic ways.  The new &lt;tt&gt;[mainnav]&lt;/tt&gt; and &lt;tt&gt;[...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=TracNavigation&amp;diff=312&amp;oldid=prev"/>
		<updated>2015-08-26T12:29:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == Trac Navigation ==  Starting with Trac 0.11, it is now possible to customize the main and meta navigation entries in some basic ways.  The new &amp;lt;tt&amp;gt;[mainnav]&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;[...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== Trac Navigation ==&lt;br /&gt;
&lt;br /&gt;
Starting with Trac 0.11, it is now possible to customize the main and meta navigation entries in some basic ways.&lt;br /&gt;
&lt;br /&gt;
The new &amp;lt;tt&amp;gt;[mainnav]&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;[metanav]&amp;lt;/tt&amp;gt; configuration sections can now be used to customize the text and link used for the navigation items, or even to disable them.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;[mainnav]&amp;lt;/tt&amp;gt; corresponds to the &amp;#039;&amp;#039;&amp;#039;main navigation bar&amp;#039;&amp;#039;&amp;#039;, the one containing entries such as &amp;#039;&amp;#039;Wiki&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Timeline&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Roadmap&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Browse Source&amp;#039;&amp;#039; and so on. This navigation bar is meant to access the default page of the main modules enabled in Trac and accessible for the current user.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;[metanav]&amp;lt;/tt&amp;gt; corresponds to the &amp;#039;&amp;#039;&amp;#039;meta navigation bar&amp;#039;&amp;#039;&amp;#039;, by default positioned above the main navigation bar and below the &amp;#039;&amp;#039;Search&amp;#039;&amp;#039; box. It contains the &amp;#039;&amp;#039;Log in&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Logout&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Help/Guide&amp;#039;&amp;#039; etc. entries. This navigation bar is meant to access some global information about the Trac project and the current user.&lt;br /&gt;
&lt;br /&gt;
There is one special entry in the  &amp;lt;tt&amp;gt;[metanav]&amp;lt;/tt&amp;gt; section: &amp;lt;tt&amp;gt;logout.redirect&amp;lt;/tt&amp;gt; is the page the user sees after hitting the logout button. &lt;br /&gt;
&lt;br /&gt;
Possible URL formats:&lt;br /&gt;
{| border=1 class=&amp;quot;simple&amp;quot;&lt;br /&gt;
! &amp;#039;&amp;#039;&amp;#039;config&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
! &amp;#039;&amp;#039;&amp;#039;redirect to&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
|- &lt;br /&gt;
|  &amp;lt;tt&amp;gt;wiki/Logout&amp;lt;/tt&amp;gt; &lt;br /&gt;
|  &amp;lt;tt&amp;gt;/projects/env/wiki/Logout&amp;lt;/tt&amp;gt; &lt;br /&gt;
|- &lt;br /&gt;
|  &amp;lt;tt&amp;gt;http://hostname/&amp;lt;/tt&amp;gt; &lt;br /&gt;
|  &amp;lt;tt&amp;gt;http://hostname/&amp;lt;/tt&amp;gt; &lt;br /&gt;
|- &lt;br /&gt;
|  &amp;lt;tt&amp;gt;/projects&amp;lt;/tt&amp;gt; &lt;br /&gt;
|  &amp;lt;tt&amp;gt;/projects&amp;lt;/tt&amp;gt; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[comment(see also #Trac3808)]]&lt;br /&gt;
&lt;br /&gt;
Note that it is still not possible to customize the &amp;#039;&amp;#039;&amp;#039;contextual navigation bar&amp;#039;&amp;#039;&amp;#039;, i.e. the one usually placed below the main navigation bar.&lt;br /&gt;
&lt;br /&gt;
==== Example ====&lt;br /&gt;
&lt;br /&gt;
In the following example, we rename the link to the Wiki start &amp;quot;Home&amp;quot;, and hide the &amp;quot;Help/Guide&amp;quot; link. &lt;br /&gt;
We also make the &amp;quot;View Tickets&amp;quot; entry link to a specific report.&lt;br /&gt;
&lt;br /&gt;
Relevant excerpt from the TracIni:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[mainnav]&lt;br /&gt;
wiki.label = Home&lt;br /&gt;
tickets.href = /report/24&lt;br /&gt;
&lt;br /&gt;
[metanav]&lt;br /&gt;
help = disabled&lt;br /&gt;
logout.redirect = wiki/Logout&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
See also: TracInterfaceCustomization, and the [http://trac-hacks.org/wiki/NavAddPlugin TracHacks:NavAddPlugin] or [http://trac-hacks.org/wiki/MenusPlugin TracHacks:MenusPlugin] (still needed for adding entries)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>