[Rt-devel] Adding a new CustomField type

Todd Chapman todd at chaka.net
Thu Oct 16 00:26:42 EDT 2008


Drew,

This thread may provide the inspiration you need.
http://lists.bestpractical.com/pipermail/rt-users/2008-February/050042.html

-Todd

On Wed, Oct 15, 2008 at 9:05 PM, Drew Taylor <taylor.andrew.j at gmail.com>wrote:

> Hi all,
>
> I was originally wanting to add new CustomField types to enable things
> like showing a flag for "Country" in addition to the text. But I just
> realized I think I can do w/o a new type by using the
> ShowComponentName Callback in Elements/ShowCustomFields. Has anyone
> tried to do this? I can see the callback provides a Name (reference to
> a string), the CustomField object and an Object (which I think will be
> a Ticket object). I imagine I need to massage what
> $Object->CustomFieldValues($CF_id) returns, but I'm not exactly sure
> how to go about it. Alternately, I could create a new
> Elements/ShowCustomField$type component and massage the Name to be the
> new component.
>
> Has anyone done this sort of thing and/or can provide an example?
>
> Thanks,
> Drew
> --
> ----------------------------------------------------------------
>  Drew Taylor                 *  Web development & consulting
>  Email: drew at drewtaylor.com  *  Site implementation & hosting
>  Web  : www.drewtaylor.com   *  perl/mod_perl/DBI/mysql/postgres
>  ----------------------------------------------------------------
> _______________________________________________
> List info:
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bestpractical.com/pipermail/rt-devel/attachments/20081016/ea0137fd/attachment.htm 


More information about the Rt-devel mailing list