How to add a theme

Okay, now that I’ve thoroughly humiliated myself by asking about
RTx-Shredder, another question: How can I add a theme to the Theme
pull-down list in the General section of Preferences? I created a
custom theme and put it in a directory in ./local/html/NoAuth/css, and I
can set WebDefaultStylesheet to the name of the theme directory, and
that works. But it doesn’t show up in the theme pull-down. The only
place I can find the themes hard-coded is in lib/RT/Config.pm, in the
WidgetArguments->Values metadata for WebDefaultStylesheet. I tried
creating my own Config_Local.pm and overriding LoadConfigs and altering
the metadata there, but that didn’t work. Thanks.

Karl Boyken

Karl Boyken, system administrator
karl-boyken@uiowa.edu
303A MLH, Dept. of Comp. Sci.
http://www.cs.uiowa.edu/~boyken/
The U. of Iowa, Iowa City, IA 52242 319-335-2730 (voice)
319-335-3668 (fax)

smime.p7s (3.19 KB)

It’s hardcoded in lib/RT/Config.pm. We’re happy to apply patch that
builds list of themes from disk.On Wed, Jan 7, 2009 at 11:31 PM, Karl Boyken boyken@divms.uiowa.edu wrote:

Okay, now that I’ve thoroughly humiliated myself by asking about
RTx-Shredder, another question: How can I add a theme to the Theme
pull-down list in the General section of Preferences? I created a custom
theme and put it in a directory in ./local/html/NoAuth/css, and I can set
WebDefaultStylesheet to the name of the theme directory, and that works.
But it doesn’t show up in the theme pull-down. The only place I can find
the themes hard-coded is in lib/RT/Config.pm, in the WidgetArguments->Values
metadata for WebDefaultStylesheet. I tried creating my own Config_Local.pm
and overriding LoadConfigs and altering the metadata there, but that didn’t
work. Thanks.

Karl Boyken


Karl Boyken, system administrator karl-boyken@uiowa.edu
303A MLH, Dept. of Comp. Sci. http://www.cs.uiowa.edu/~boyken/
The U. of Iowa, Iowa City, IA 52242 319-335-2730 (voice) 319-335-3668
(fax)


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Best regards, Ruslan.