Opened 17 years ago
Last modified 5 years ago
#2857 new enhancement
[PATCH] How can i change the position of the menu?
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | ProjectMenuPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
Can I change the project menu place, because it is not good in many themes? Thanks.
Attachments (2)
Change History (8)
comment:1 Changed 17 years ago by
comment:2 Changed 17 years ago by
I applied a few modifications to the latest code from the SVN repository, including the previously mentioned fixes from ticket #1393 and #1372. Additionally, in my version the SELECT
element is stored in an environment variable named projectmenu
.
What is the benefit from this latter change? Using the NavHiderPlugin, one can hide the select box from the metanav bar completely, and instead place it anywhere on the page, by e.g. adding the following fragment to the templates/header.cs
file:
<?cs if:projectmenu ?><?cs var:projectmenu ?><?cs /if ?>
(probably it would even go into one <?cs .. ?>
statement, but I'm not that familiar with it). If no special placement is required, it still goes to the metanav.
I will add the patch and the resulting Python-Egg as well - the latter for those not so familiar with patching stuff :) If someone is still working on this plugin, a decision may be taken to adopt this code to the SVN repository...
Changed 17 years ago by
Attachment: | TracProjectMenu-1.0-py2.4.egg added |
---|
Python Egg of the ProjectMenuPlugin with the changes of comment:2
Changed 17 years ago by
Attachment: | web_ui.patch added |
---|
Patch to the ProjectMenuPlugin with the changes of comment:2
comment:3 Changed 15 years ago by
Summary: | How can i change the possition of the menu? → [PATCH] How can i change the possition of the menu? |
---|
comment:4 Changed 10 years ago by
Summary: | [PATCH] How can i change the possition of the menu? → [PATCH] How can i change the position of the menu? |
---|
comment:5 Changed 10 years ago by
Owner: | changed from Noah Kantrowitz to Ryan J Ollos |
---|---|
Status: | new → assigned |
comment:6 Changed 5 years ago by
Owner: | Ryan J Ollos deleted |
---|---|
Status: | assigned → new |
As it is, you can only move it inside the metanav bar (i.e. to the left or to the right) editing your projects
conf/trac.ini
. Search for the line starting with "metanav", which probably looks likeNow place the term "projectmenu" at the position you like it better, e.g.
But I'm afraid this won't suit better with your themes...