2008/10/8 Colin Guthrie <[EMAIL PROTECTED]>:
> Thomas Moschny wrote:
>> Here we'd like to add a custom field to each ticket the contents of
>> which can be selected from a list (for example a list of customers).
>
> You should see the ClientsPlugin on Trac Hacks :)

Yes, I knew that plugin before, and it indeed looks nice.
But, while it on the one hand has features we don't currently need,
one thing on the other hand that bothered me ...

>> This would be a custom ticket field of type 'select'. However, the
>> list of values should not be configured statically, in the trac.ini,
>> but generated dynamically, for example fetched from a wiki page.
>
> This above plugin has an admin component that allows you to administer
> this :)

... is that an admin has to manually administrate that list.

So, I made my own little plugin that gathers that list from all wiki
pages, using a macro. If you add '[[Customer(foo|bar)]]' on some wiki
page, the drop-down list in the ticket creation/modification form will
grow two new entries 'foo' and 'bar'.

- Thomas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to