Modify ↓
Opened 16 years ago
Closed 8 years ago
#3632 closed enhancement (wontfix)
provide or document ways to use variables in custom items
Reported by: | Clif Kussmaul | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | low | Component: | NavAddPlugin |
Severity: | trivial | Keywords: | |
Cc: | Clif Kussmaul | Trac Release: | 0.11 |
Description
It would be very nice for custom menu items to be able to variables, such as the current user, the current wiki topic, ticket number, etc.
Please consider adding this, or documenting examples of how to do it.
Attachments (0)
Change History (5)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
I want to create custom menu items with titles or URLs that are not completely static, but depend on other information in trac, such as the current user, current topic, current ticket number, etc. This would add considerable power & flexibility.
For example, we could create custom menu items to:
- custom query showing tickets for the current user
mytickets.title = Tickets for $USER mytickets.url = .../query?owner=$USER
- actions for the current wiki page:
pageattach.title = Attach pageattach.url = .../wiki/$PAGE?action=attach pagedelete.title = Delete pagedelete.url = .../wiki/$PAGE?action=delete pageedit.title = Edit pageedit.url = .../wiki/$PAGE?action=edit
- actions for the current ticket
samecomp.title = Same Component samecomp.url = .../query?component=$COMPONENT samemile.title = Same Milestone samemile.url = .../query?milestone=$MILESTONE
comment:4 Changed 15 years ago by
Cc: | Ryan J Ollos added |
---|
comment:5 Changed 11 years ago by
Owner: | changed from Michael Renzmann to Ryan J Ollos |
---|---|
Status: | new → assigned |
comment:6 Changed 8 years ago by
Cc: | Ryan J Ollos removed |
---|---|
Resolution: | → wontfix |
Status: | assigned → closed |
The plugin is deprecated. If the functionality is needed, please request it in Trac.
Note: See
TracTickets for help on using
tickets.
I'm not sure I understand what you request. Can you please describe a more detailed description of your idea?