RT4.0.2 Modify Custom Field layout

I have been trolling through the mailing lists for information.

I have 20 “Custom Fields”.
The “Custom Fields” are one column in the “Display” page for a ticket
and they show up fine for there.
Though later on it would be nice to add some separators between fields
and some text here.

More importantly:

I would like to modify the layout when we edit the “Custom Fields” after
a ticket has been created.

RT orders ticket specifics like “Subject”, “Status”, “Queue” into one
column, fine.
RT then orders the “Custom Fields” into two columns and it is a bit of a
dogs breakfast.

I would like to have some separators and maybe some text between them.
ie. Design, Implementation
I would also like to set the size of the Text box created.

I know I can order them using the UI and that is helpful, but what is
the best way to go about
changing the formatting of the Edit page? Best Practice?

Pointers appreciated.

Michael

Michael Morel
Systems Administrator
Ph 403-247-7300
Fx 403-247-6501
Michael.Morel@totem.ca mailto:Michael.Morel@totem.ca
www.totem.ca http://www.totem.ca
Totem Building Supplies Ltd.
6920 - 29th Avenue NW
Calgary, Alberta T3B 0J4

I have been trolling through the mailing lists for information.

I have 20 “Custom Fields”.
The “Custom Fields” are one column in the “Display” page for a
ticket and they show up fine for there.
Though later on it would be nice to add some separators between
fields and some text here.

More importantly:

I would like to modify the layout when we edit the “Custom Fields”
after a ticket has been created.

RT orders ticket specifics like “Subject”, “Status”, “Queue” into
one column, fine.
RT then orders the “Custom Fields” into two columns and it is a bit
of a dogs breakfast.

I would like to have some separators and maybe some text between
them. ie. Design, Implementation
I would also like to set the size of the Text box created.

I know I can order them using the UI and that is helpful, but what
is the best way to go about
changing the formatting of the Edit page? Best Practice?

You can swap from 2 columns to 1 by setting the
EditCustomFieldsSingleColumn config option. To add breaks and extra
wording, you’ll need to use the various callbacks in EditCustomFields
and the components that it calls.

-kevin

Thanks, I am going to dig into that today.

MichaelOn 11-09-29 11:59 AM, Kevin Falcone wrote:

On Wed, Sep 28, 2011 at 03:48:40PM -0600, Michael Morel wrote:

I have been trolling through the mailing lists for information.

I have 20 “Custom Fields”.
The “Custom Fields” are one column in the “Display” page for a
ticket and they show up fine for there.
Though later on it would be nice to add some separators between
fields and some text here.

More importantly:

I would like to modify the layout when we edit the “Custom Fields”
after a ticket has been created.

RT orders ticket specifics like “Subject”, “Status”, “Queue” into
one column, fine.
RT then orders the “Custom Fields” into two columns and it is a bit
of a dogs breakfast.

I would like to have some separators and maybe some text between
them. ie. Design, Implementation
I would also like to set the size of the Text box created.

I know I can order them using the UI and that is helpful, but what
is the best way to go about
changing the formatting of the Edit page? Best Practice?
You can swap from 2 columns to 1 by setting the
EditCustomFieldsSingleColumn config option. To add breaks and extra
wording, you’ll need to use the various callbacks in EditCustomFields
and the components that it calls.

-kevin


RT Training Sessions (http://bestpractical.com/services/training.html)

  • Chicago, IL, USA — September 26& 27, 2011
  • San Francisco, CA, USA — October 18& 19, 2011
  • Washington DC, USA — October 31& November 1, 2011
  • Melbourne VIC, Australia — November 28& 29, 2011
  • Barcelona, Spain — November 28& 29, 2011

Michael Morel
Systems Administrator
Ph 403-247-7300
Fx 403-247-6501
Michael.Morel@totem.ca mailto:Michael.Morel@totem.ca
www.totem.ca http://www.totem.ca
Totem Building Supplies Ltd.
6920 - 29th Avenue NW
Calgary, Alberta T3B 0J4

What am I missing here.

I edited RT_SiteConfig.pm with the new value but two columns still show
up when I edit Custom Fields.

mciahel

pwd

/opt/rt4/etc

grep Column *

RT_Config.pm:=item C<$EditCustomFieldsSingleColumn>
RT_Config.pm:Set($EditCustomFieldsSingleColumn, 0);
RT_SiteConfig.pm:Set( $EditCustomFieldsSingleColumn, 1);

cat /usr/local/bin/clean_mason.sh

rm -rf /opt/rt4/var/mason_data/obj/*
/etc/init.d/httpd restart

/usr/local/bin/clean_mason.sh

Stopping httpd: [ OK ]
Starting httpd: [ OK ]On 11-09-30 10:16 AM, Michael Morel wrote:

Thanks, I am going to dig into that today.

Michael

On 11-09-29 11:59 AM, Kevin Falcone wrote:

On Wed, Sep 28, 2011 at 03:48:40PM -0600, Michael Morel wrote:

I have been trolling through the mailing lists for information.

I have 20 “Custom Fields”.
The “Custom Fields” are one column in the “Display” page for a
ticket and they show up fine for there.
Though later on it would be nice to add some separators between
fields and some text here.

More importantly:

I would like to modify the layout when we edit the “Custom Fields”
after a ticket has been created.

RT orders ticket specifics like “Subject”, “Status”, “Queue” into
one column, fine.
RT then orders the “Custom Fields” into two columns and it is a bit
of a dogs breakfast.

I would like to have some separators and maybe some text between
them. ie. Design, Implementation
I would also like to set the size of the Text box created.

I know I can order them using the UI and that is helpful, but what
is the best way to go about
changing the formatting of the Edit page? Best Practice?
You can swap from 2 columns to 1 by setting the
EditCustomFieldsSingleColumn config option. To add breaks and extra
wording, you’ll need to use the various callbacks in EditCustomFields
and the components that it calls.

-kevin


RT Training Sessions (http://bestpractical.com/services/training.html)

  • Chicago, IL, USA — September 26& 27, 2011
  • San Francisco, CA, USA — October 18& 19, 2011
  • Washington DC, USA — October 31& November 1, 2011
  • Melbourne VIC, Australia — November 28& 29, 2011
  • Barcelona, Spain — November 28& 29, 2011


Michael Morel
Systems Administrator
Ph 403-247-7300
Fx 403-247-6501
Michael.Morel@totem.ca mailto:Michael.Morel@totem.ca
www.totem.ca http://www.totem.ca
Totem Building Supplies Ltd.
6920 - 29th Avenue NW
Calgary, Alberta T3B 0J4


RT Training Sessions (http://bestpractical.com/services/training.html)

  • San Francisco, CA, USA — October 18& 19, 2011
  • Washington DC, USA — October 31& November 1, 2011
  • Melbourne VIC, Australia — November 28& 29, 2011
  • Barcelona, Spain — November 28& 29, 2011

Michael Morel
Systems Administrator
Ph 403-247-7300
Fx 403-247-6501
Michael.Morel@totem.ca mailto:Michael.Morel@totem.ca
www.totem.ca http://www.totem.ca
Totem Building Supplies Ltd.
6920 - 29th Avenue NW
Calgary, Alberta T3B 0J4

What am I missing here.

I edited RT_SiteConfig.pm with the new value but two columns still
show up when I edit Custom Fields.

Looks like someone broke this config option after I added it.
Please file a bug in the bugtracker.

Thanks

-kevin