[rt-users] Changing refresh time

Aleš Sušnik alesh at sportina.si
Thu Jul 1 17:41:07 EDT 2004


Change Elements/Refresh to:

<SELECT NAME="<%$Name%>">
%foreach my $value (@refreshevery) {
<OPTION VALUE="<%$value%>"
% if  ( $Default && ($value == $Default)) {
SELECTED
% }
><&|/l, $value/60 &>Refresh this page every [_1] minutes.</&></OPTION>
%}
</SELECT>

<%INIT>
my @refreshevery = qw(30);
</%INIT>
<%ARGS>
$Name => undef
$Default => 0
</%ARGS>


and Elements/Header part:

% if ($Refresh > 0) {
<META HTTP-EQUIV="REFRESH" CONTENT="<%$Refresh%>">
% }

to:

<META HTTP-EQUIV="REFRESH" CONTENT="30">

To achieve your goal.

A.

-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Erik Boles
Sent: Thursday, July 01, 2004 10:52 PM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] Changing refresh time

I saw this post one other place, but the answer to it was "hack the code"
with no real details.

Anyone have any better thoughts on this?

I found the code in /Elements/Refresh, but am not sure how to go about
changing it to default to something other than "do not refresh this page".

Ideally I would like to remove the option to the end user altogether and set
the time to 30 seconds.

Also, it looks like the only page that refreshes is the index.html page,
once you go into the general Queue it quits refreshing and when you go back
to the home page you need to reset your refresh again.  Am I seeing that
right?

Thanks for any input and suggestions.

--Erik


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

RT Developer and Administrator training is coming to LA, DC and Frankfurt
this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited. 





More information about the rt-users mailing list