[rt-users] Logo Replacement in 3.8.x success

David Griffith dgriffi at cs.csubak.edu
Tue Dec 15 13:32:39 EST 2009


Here is how I successfully replaced the default logo in RT 3.8.7:


1)  Add the following to RT_SiteConfig.pm, which may me in /opt/rt3/etc/
or /etc/request-tracker3.8/.  Alter as appropriate.

Set($WebBaseURL, "http://internal.yoyodyne.com");
Set($WebPath , "/rt");
Set($WebURL, $WebBaseURL . $WebPath . "/");
Set($WebImagesURL, $WebURL . "NoAuth/images/");
Set($LogoLinkURL, $WebBaseUrl);
Set($LogoURL, $WebImagesURL . "mylogo.png");
Set($LogoAltText, "Yoyodyne Inc");
Set($LogoWidth, '100');
Set($LogoHeight, '50');


2)  Copy $RT_HOME/share/html/NoAuth/css/web2/layout.css to
$RT_HOME/local/html/NoAuth/css/web2/.  Around line 172 (with RT 3.8.7)
you'll see:

div#logo a {
     display: none;
     left: 0;
     bottom: 0;
}

Change that to something suitable.  The following will place the logo at
the bottom left of every page with the left edge aligned with main body
of the page:

div#logo a {
     display: fixed;
     left: 10%;
     bottom: 1%;
}

It would be nice to get RT_SiteConfig.pm to set this part without the need 
to edit layout.css?


3)  Put your logo in $RT_HOME/local/html/NoAuth/images/.  Make sure the 
filename here matches what you pout in RT_SiteConfig.pm.


4)  Copy $RT_HOME/share/html/Elements/Logo to
$RT_HOME/local/html/Elements.  Around line 48 you'll see a line that
begins with "<div id="logo">".  That entire "div" section should be
replaced with this:

<div id="logo">
<a href="<%$RT::LogoLinkURL%>"><img
     src="<%$ARGS{'LogoURL'}||RT->Config->Get('LogoURL')%>"
     alt="<% loc("<%$RT::LogoAltText%") %>"
     width="<%$RT::LogoWidth%>" height="<%$RT::LogoHeight%>" /></a>
% if ( $ShowName ) {
     <span class="rtname"><% $Name || loc("RT for [_1]",
     RT->Config->Get('rtname')) %></span>
% }
</div>

This edit really should be in RT by default.


5)  This edit is optional.  That big Best Practical logo bugs me, so I
remove it like this:

cp -p $RT_HOME/share/html/Elements/Footer \
         $RT_HOME/share/html/Elements/Footer.orig
cp /dev/null $RT_HOME/share/html/Elements/Footer


6)  Now restart apache.


-- 
David Griffith
dgriffi at cs.csubak.edu

A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



More information about the rt-users mailing list