<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body>
<br>
<br>
Jim Meyer wrote:<br>
<blockquote
cite="midc09f2f8a0604120734k7c86522cu1200024026a84521@mail.gmail.com"
type="cite">
<pre wrap="">Hello!
On 4/12/06, Rangarajan Radhakrishnan <a class="moz-txt-link-rfc2396E" href="mailto:rangarajan.radhakrishnan@bms.com"><rangarajan.radhakrishnan@bms.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Version: 3.6.0pre0
In the process of enhancing the home page for all users, I am trying to
enforce the same list of panes for all users.
[...]
</pre>
</blockquote>
<pre wrap=""><!---->
While it doesn't explain the code above, there's an explanation of how
to change the default "RT At A Glance" page in the wiki:
<a class="moz-txt-link-freetext" href="http://wiki.bestpractical.com/index.cgi?ChangeDefaultRTAtAGlance">http://wiki.bestpractical.com/index.cgi?ChangeDefaultRTAtAGlance</a>
Cheers!
--j
--
Jim Meyer, Geek at Large <a class="moz-txt-link-abbreviated" href="mailto:purp@acm.org">purp@acm.org</a>
</pre>
</blockquote>
Thank you Jim.<br>
<br>
I was trying the approach this article mentions but wasn't sure if the
content field of ATTRIBUTES table were getting altered when I was
changing my Homepage settings using Prefs/MyRT.html. Sequence of steps
used:<br>
- stopped apache<br>
- cleared session_data and mason_data<br>
- backed up ATTRIBUTES table using "CREATE TABLE MY_BKP_ATTRIBUTES AS
SELECT * FROM ATTRIBUTES;"<br>
- updated one record (set CREATOR TO A non-existant ID) <br>
corresponding to CREATOR = <myuserid> AND NAME =
'Pref-HomepageSettings'<br>
- Commit<br>
- restarted apache<br>
- Tried changing the Homepage settings and did not see a new record in
Attributes but the changes were effective immediately....<br>
<br>
The idea being that if it worked, I could copy CONTENT corresponding
to 'Pref-HomepageSettings' (for my user) as CONTENT corresponding to
'HomepageSettings'<br>
------------------------------<br>
Anyway I overcame this issue by defining new variables in:
RT_SiteConfig.pm<br>
<tt>Set($AllowCustomHomepage, 1);</tt><br>
<tt>Set($MyHomepageBodyComponents,<br>
[<br>
{ "type" => "component", "name" => "QuickCreate" },<br>
]<br>
);<br>
Set($MyHomepageSummaryComponents,<br>
[<br>
{ "type" => "component", "name" => "Quicksearch" },<br>
]<br>
);<br>
<br>
And using before the _show calls in Elements/MyRT :<br>
% $portlets->{body} = $RT::HomepageBodyComponents if
($RT::AllowCustomHomepage);<br>
</tt><tt>% $portlets->{summary} = $RT::HomepageSummaryComponents if
($RT::AllowCustomHomepage);<br>
<br>
This is assuming that you do not need system searches (such as unowned
tickets) on the Homepage.<br>
</tt><br>
</body>
</html>