[rt-users] Display user custom fields in user list

Emmanuel Lacour elacour at easter-eggs.com
Wed Nov 10 11:03:23 EST 2010


On Wed, Nov 10, 2010 at 04:21:53PM +0100, Wolfram Huettermann wrote:
> Hi,
> 
> I have a user list with the entries "id", "name", "real name" and
> "e-mail address". I have created  a user custom field "hobbies" and
> I want to display it in that list as an additional column. How is it
> possible? What should I do?
> 

on recent RT 3.8.8, you should be able to do this with configuration
variable %AdminSearchResultFormat.

example to display CF "Test":

Set(%AdminSearchResultFormat,
   ...
   Users =>
        q{'<a href="__WebPath__/Admin/Users/Modify.html?id=__id__">__id__</a>/TITLE:#'}
        .q{,'<a href="__WebPath__/Admin/Users/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
        .q{,__RealName__, __EmailAddress__}
        .q[, 'CF.{Test}'],
        ^^^^^^^^^^^^^^^^^^
   ...
);




More information about the rt-users mailing list