On Sat, Oct 4, 2008 at 6:23 AM, sfx <[EMAIL PROTECTED]> wrote: > > On Oct 3, 8:24 pm, "W. Craig Trader" <[EMAIL PROTECTED]> wrote: >> I have a customer who is using Trac, but wants some changes to the >> appearance of tickets, as follows: >> >> 1. When a ticket displays, when displaying the component, instead of >> 'Component' they would like to see 'Project'. >> 2. When a ticket displays, instead of displaying the ticket severity, >> they would like to see the ticket status displayed. >> >> They also want a custom field that displays dates, but that can be fixed by >> adding the DateField plugin <http://trac-hacks.org/wiki/DateFieldPlugin>. >> >> I know that custom fields can be given custom names -- how do I override the >> display name for a standard field? >> >> - Craig - > > > I had to do the same thing. I am by no means an expert to advocate > this method, but this works for me. > I used sqlite3 as db. > I changed the milestone and priority values to my own values by > changes the [trac.db].components/enum/milestones. > if you explore trac.db under <yourTrackFolder>/Projects/db/trac.db (by > the way this path works for sqlite3, I am not sure if other > installation of db's have different paths, or have differnt table > structure) > and change the values in tables you like, e.g I changed the milestone > values in milestone table, priority, and components, it started > showing me the custom values which I inserted into tables. > Again, I would like some expert to shed some light on it, if there is > any apparant flaw with this technique. > Hope that helps.
There are two flaws with what you're saying. Milestone, priority, and component values certainly need not be changed directly through the DB, and in fact that is not a good idea (especially if you already have tickets using the old fields). All of these can and should be changed through the admin interface. The second flaw is that this isn't what the OP is asking. The OP is asking how to filter out certain fields, and how to change the labels of some fields. As they said, the best way to do this is with an IRequestFilter plugin. The black magic ticket plugin may be able to do some of this too (it just uses IRequestFilter to modify tickets in a general manner). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
