<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=CustomizingWithLocalDir</id>
	<title>CustomizingWithLocalDir - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=CustomizingWithLocalDir"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=CustomizingWithLocalDir&amp;action=history"/>
	<updated>2026-08-22T01:54:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=CustomizingWithLocalDir&amp;diff=27197&amp;oldid=prev</id>
		<title>Bkembree: Add directions for finding the local directory.</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=CustomizingWithLocalDir&amp;diff=27197&amp;oldid=prev"/>
		<updated>2024-07-10T14:38:10Z</updated>

		<summary type="html">&lt;p&gt;Add directions for finding the local directory.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:38, 10 July 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Under the RT installation tree, there is a directory called &amp;#039;local&amp;#039;. You can place files under this directory to override most files in the RT installation without touching the original. Also, this allows you to quickly retrace what has been customized when you upgrade RT. This method works for both Mason components which RT puts under share/html/ and Perl library files which RT puts in lib/.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Under the RT installation tree, there is a directory called &amp;#039;local&amp;#039;. You can place files under this directory to override most files in the RT installation without touching the original. Also, this allows you to quickly retrace what has been customized when you upgrade RT. This method works for both Mason components which RT puts under share/html/ and Perl library files which RT puts in lib/.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= Finding the local directory =&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;To find the full path to the local directory go to Admin -&amp;gt; Tools -&amp;gt; System Configuration and search for &amp;lt;code&amp;gt;RT::MasonLocalComponentRoot&amp;lt;/code&amp;gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Example =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Example =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key bestpractical_mediawiki1459887241:diff:1.41:old-751:rev-27197:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Bkembree</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=CustomizingWithLocalDir&amp;diff=751&amp;oldid=prev</id>
		<title>Admin: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=CustomizingWithLocalDir&amp;diff=751&amp;oldid=prev"/>
		<updated>2016-04-06T20:03:37Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
Under the RT installation tree, there is a directory called &amp;#039;local&amp;#039;. You can place files under this directory to override most files in the RT installation without touching the original. Also, this allows you to quickly retrace what has been customized when you upgrade RT. This method works for both Mason components which RT puts under share/html/ and Perl library files which RT puts in lib/.&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&lt;br /&gt;
Suppose you don&amp;#039;t like default RT header. The Mason component for this is share/html/Elements/Header. To customize it, simply copy it to local/html/Elements/Header and apply your changes to that file. When you restart your web server, your new Header component will be loaded. You &amp;#039;&amp;#039;&amp;#039;must restart&amp;#039;&amp;#039;&amp;#039; your webserver and [http://wiki.bestpractical.com/view/CleanMasonCache clear the Mason object cache] (or have [[DevelMode]] enabled) to for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
= Important thing to know =&lt;br /&gt;
&lt;br /&gt;
You &amp;#039;&amp;#039;&amp;#039;must&amp;#039;&amp;#039;&amp;#039; remember that if you put a &amp;lt;code&amp;gt;local/lib/Xxx.pm&amp;lt;/code&amp;gt; file under the local directory then RT will never try to load &amp;lt;code&amp;gt;lib/Xxx.pm&amp;lt;/code&amp;gt; from the analogous base directory. Files under the local/ directory completely &amp;quot;replace&amp;quot; files from base directories logically.&lt;br /&gt;
&lt;br /&gt;
This can be changed for Mason components. If you want to modify a component, but only use it sometimes and not others, see [[BypassLocalComponent]].&lt;br /&gt;
&lt;br /&gt;
= Overriding translation files =&lt;br /&gt;
&lt;br /&gt;
Also note that I18N overrides work differently; they go in &amp;lt;code&amp;gt;local/po&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;local/lib/RT/I18N&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
= Alternatives to the local dir =&lt;br /&gt;
&lt;br /&gt;
In many cases you can instead use [[CustomizingWithCallbacks]] to customize the web GUI.&lt;br /&gt;
&lt;br /&gt;
For customizing Perl libraries you should also look at [[CustomizingWithOverlays]]. Overlays can be put under the local/lib/ tree.&lt;br /&gt;
&lt;br /&gt;
[[CustomizingWithPatches]] may be preferred in some cases.&lt;br /&gt;
&lt;br /&gt;
= Other ways to customize RT =&lt;br /&gt;
&lt;br /&gt;
[[Customizing]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=CustomizingWithLocalDir&amp;diff=749&amp;oldid=prev</id>
		<title>BillCole at 23:46, 19 November 2010</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=CustomizingWithLocalDir&amp;diff=749&amp;oldid=prev"/>
		<updated>2010-11-19T23:46:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
Under the RT installation tree, there is a directory called &amp;#039;local&amp;#039;. You can place files under this directory to override most files in the RT installation without touching the original. Also, this allows you to quickly retrace what has been customized when you upgrade RT. This method works for both Mason components which RT puts under share/html/ and Perl library files which RT puts in lib/.&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&lt;br /&gt;
Suppose you don&amp;#039;t like default RT header. The Mason component for this is share/html/Elements/Header. To customize it, simply copy it to local/html/Elements/Header and apply your changes to that file. When you restart your web server, your new Header component will be loaded. You &amp;#039;&amp;#039;&amp;#039;must restart&amp;#039;&amp;#039;&amp;#039; your webserver and [http://wiki.bestpractical.com/view/CleanMasonCache clear the Mason object cache] (or have [[DevelMode]] enabled) to for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
= Important thing to know =&lt;br /&gt;
&lt;br /&gt;
You &amp;#039;&amp;#039;&amp;#039;must&amp;#039;&amp;#039;&amp;#039; remember that if you put a &amp;lt;code&amp;gt;local/lib/Xxx.pm&amp;lt;/code&amp;gt; file under the local directory then RT will never try to load &amp;lt;code&amp;gt;lib/Xxx.pm&amp;lt;/code&amp;gt; from the analogous base directory. Files under the local/ directory completely &amp;quot;replace&amp;quot; files from base directories logically.&lt;br /&gt;
&lt;br /&gt;
This can be changed for Mason components. If you want to modify a component, but only use it sometimes and not others, see [[BypassLocalComponent]].&lt;br /&gt;
&lt;br /&gt;
= Overriding translation files =&lt;br /&gt;
&lt;br /&gt;
Also note that I18N overrides work differently; they go in &amp;lt;code&amp;gt;local/po&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;local/lib/RT/I18N&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
= Alternatives to the local dir =&lt;br /&gt;
&lt;br /&gt;
In many cases you can instead use [[CustomizingWithCallbacks]] to customize the web GUI.&lt;br /&gt;
&lt;br /&gt;
For customizing Perl libraries you should also look at [[CustomizingWithOverlays]]. Overlays can be put under the local/lib/ tree.&lt;br /&gt;
&lt;br /&gt;
[[CustomizingWithPatches]] may be preferred in some cases.&lt;br /&gt;
&lt;br /&gt;
= Other ways to customize RT =&lt;br /&gt;
&lt;br /&gt;
[[Customizing]]&lt;/div&gt;</summary>
		<author><name>BillCole</name></author>
	</entry>
</feed>