Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#6973 closed defect (worksforme)

Changing the Trac Header Wiki to Home

Reported by: lijum@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/web Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hi,

how we can change the trac Header's caption.Our requirment is we need to change the caption "Wiki" which showing on the navigation bar to" Home".

I am not a developer and haven't any idea about css. Pls suggest me a solution ASAP.

Thanaks in advance, Liju Mathew

Attachments (0)

Change History (5)

comment:1 by Tim Hatch, 16 years ago

For 0.10, you'll need to edit the source. See trac/wiki/web_ui.py in the get_navigation_items function.

        yield ('mainnav', 'wiki',
               html.A('Wiki', href=req.href.wiki(), accesskey=1))

For users of 0.11, see wiki:0.11/TracInterfaceCustomization#CustomNavigationEntries

in reply to:  1 comment:2 by anonymous, 16 years ago

Resolution: fixed
Status: newclosed

Replying to thatch:

For 0.10, you'll need to edit the source. See trac/wiki/web_ui.py in the get_navigation_items function.

        yield ('mainnav', 'wiki',
               html.A('Wiki', href=req.href.wiki(), accesskey=1))

For users of 0.11, see wiki:0.11/TracInterfaceCustomization#CustomNavigationEntries

Hi Thatch,

Thnaks for sooner reply. we had used it on a windows system for a YTrac server and has installed using on the setup package trac-0.10.3.win32.exe. I think it's a complied version of a Trac.So that I can't find any file which named web_ui.py on it.Also server holds nearly 10-12 Trac instance and this is a one of the custom requirments towards a Trac from a client.

Anyway I had find a solution for this. I had understood that it's not a straight way surely but it serve our requirement definitively.

What I did is listed follow

1, Install the plugins NavAddPlugin,NavHiderPlugin 2, Add the entry in trac.ini

[components] navadd.* = enabled navhider.* = enabled

[navhider] mainnav = wiki metanav = help

[navadd] add_items = imprint,home imprint.title = Impressum/Imprint imprint.url = /wiki/Impressum #imprint.perm = WIKI_VIEW imprint.target = metanav home.title = Home home.url = http://localhost/trac/wiki

#download.perm = WIKI_VIEW

home.target = mainnav

3, Add new entry in mainnav for home

mainnav = home,wiki,timeline,roadmap,browser,tickets,newticket,search

That's it :-)

Thanks for your kind help.

Best regards Liju Mathew

comment:3 by anonymous, 16 years ago

Resolution: fixed
Status: closedreopened

comment:4 by anonymous, 16 years ago

Resolution: worksforme
Status: reopenedclosed

This wasn't really "fixed" as there isn't a defect to begin with. Setting this as "worksforme" since it can be easily accomplished in 0.11.

comment:5 by Christian Boos, 16 years ago

Milestone: 0.10.5

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.