Statistics Callback

Just trying to implement AJ’s Callback from Vol3 Issue 73 for replacing
the Elements/Tab with a Callback (its our first and only Callback so
far), but I’m seeing the Statistics data duplicated twice, One near the
top and again at the bottom of the page?

Even did a restart to make sure.

What did I miss?

Message: 6
Date: Wed, 21 Jan 2004 16:30:56 -0500
From: “AJ” rt@musefoundry.com
Subject: RE: [rt-users] Feature suggestion list for Statistics
To: “‘Todd Chapman’” rt@chaka.net, “‘Kelly F. Hickel’”
kfh@mqsoftware.com
Cc: rt-users@lists.fsck.com
Message-ID:
!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAA9tUWdOmOUE+6g2RIHUkSNAEAwYmj7r9QD0mtN+MAvAz3KwAAABnaGwAAEAAAAGDQHnNWgRNKu2ML0hG7TgIBAAAAAA==@musefoundry.com

Content-Type: text/plain; charset=“us-ascii”

Another clean way to do it would be:
/local/html/Callbacks/Statistics/Elements/Tabs/Default

And in Default put:
<%init>
$toptabs->{‘CC-Statistics’} = { title =>loc(“Statistics”),
path => “Statistics/index.html” };
</%init>
<%args>
$toptabs =>undef
</%args>

That way one keeps the Statistics tabs away from any of the core elements.

In some cases, may need to restart webserver after adding.

A.J.

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Todd Chapman
Sent: Wednesday, January 21, 2004 2:05 PM
To: Kelly F. Hickel
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Feature suggestion list for Statistics

Also, currently the statistics package implements it’s tab by
creating a local version of the Tabs component:

local/html/Elements/Tabs

The same can be accomplished more cleanly using callbacks. I
created this file:

share/html/Callbacks/local/Elements/Tabs/

With these comments:

<%init>
$toptabs->{‘Z’} = { title => loc(‘Statistics’), path =>
‘Statistics/index.html’ };
</%init>
<%args>
$toptabs
</%args>

and deleted local/html/Elements/Tabs.

For further reference:

http://lists.fsck.com/pipermail/rt-devel/2003-November/005101.html

-Todd

Rick Ellis Richard.Ellis@Sun.COM

Maybe you added the callback but never removed the overlay.

-ToddOn Mon, Jan 26, 2004 at 03:15:37PM +0000, Rick Ellis wrote:

Just trying to implement AJ’s Callback from Vol3 Issue 73 for replacing
the Elements/Tab with a Callback (its our first and only Callback so
far), but I’m seeing the Statistics data duplicated twice, One near the
top and again at the bottom of the page?

Even did a restart to make sure.

What did I miss?

Message: 6
Date: Wed, 21 Jan 2004 16:30:56 -0500
From: “AJ” rt@musefoundry.com
Subject: RE: [rt-users] Feature suggestion list for Statistics
To: “‘Todd Chapman’” rt@chaka.net, “‘Kelly F. Hickel’”
kfh@mqsoftware.com
Cc: rt-users@lists.fsck.com
Message-ID:
!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAA9tUWdOmOUE+6g2RIHUkSNAEAwYmj7r9QD0mtN+MAvAz3KwAAABnaGwAAEAAAAGDQHnNWgRNKu2ML0hG7TgIBAAAAAA==@musefoundry.com

Content-Type: text/plain; charset=“us-ascii”

Another clean way to do it would be:
/local/html/Callbacks/Statistics/Elements/Tabs/Default

And in Default put:
<%init>
$toptabs->{‘CC-Statistics’} = { title =>loc(“Statistics”),
path => “Statistics/index.html” };
</%init>
<%args>
$toptabs =>undef
</%args>

That way one keeps the Statistics tabs away from any of the core elements.

In some cases, may need to restart webserver after adding.

A.J.

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Todd Chapman
Sent: Wednesday, January 21, 2004 2:05 PM
To: Kelly F. Hickel
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Feature suggestion list for Statistics

Also, currently the statistics package implements it’s tab by
creating a local version of the Tabs component:

local/html/Elements/Tabs

The same can be accomplished more cleanly using callbacks. I
created this file:

share/html/Callbacks/local/Elements/Tabs/

With these comments:

<%init>
$toptabs->{‘Z’} = { title => loc(‘Statistics’), path =>
‘Statistics/index.html’ };
</%init>
<%args>
$toptabs
</%args>

and deleted local/html/Elements/Tabs.

For further reference:

http://lists.fsck.com/pipermail/rt-devel/2003-November/005101.html

-Todd

Rick Ellis Richard.Ellis@Sun.COM


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Nope :slight_smile:

That was the first thing I recheckedOn Mon, 2004-01-26 at 14:39, Todd Chapman wrote:

Maybe you added the callback but never removed the overlay.

-Todd

On Mon, Jan 26, 2004 at 03:15:37PM +0000, Rick Ellis wrote:

Just trying to implement AJ’s Callback from Vol3 Issue 73 for replacing
the Elements/Tab with a Callback (its our first and only Callback so
far), but I’m seeing the Statistics data duplicated twice, One near the
top and again at the bottom of the page?

Even did a restart to make sure.

What did I miss?

Message: 6
Date: Wed, 21 Jan 2004 16:30:56 -0500
From: “AJ” rt@musefoundry.com
Subject: RE: [rt-users] Feature suggestion list for Statistics
To: “‘Todd Chapman’” rt@chaka.net, “‘Kelly F. Hickel’”
kfh@mqsoftware.com
Cc: rt-users@lists.fsck.com
Message-ID:
!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAA9tUWdOmOUE+6g2RIHUkSNAEAwYmj7r9QD0mtN+MAvAz3KwAAABnaGwAAEAAAAGDQHnNWgRNKu2ML0hG7TgIBAAAAAA==@musefoundry.com

Content-Type: text/plain; charset=“us-ascii”

Another clean way to do it would be:
/local/html/Callbacks/Statistics/Elements/Tabs/Default

And in Default put:
<%init>
$toptabs->{‘CC-Statistics’} = { title =>loc(“Statistics”),
path => “Statistics/index.html” };
</%init>
<%args>
$toptabs =>undef
</%args>

That way one keeps the Statistics tabs away from any of the core elements.

In some cases, may need to restart webserver after adding.

A.J.

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Todd Chapman
Sent: Wednesday, January 21, 2004 2:05 PM
To: Kelly F. Hickel
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Feature suggestion list for Statistics

Also, currently the statistics package implements it’s tab by
creating a local version of the Tabs component:

local/html/Elements/Tabs

The same can be accomplished more cleanly using callbacks. I
created this file:

share/html/Callbacks/local/Elements/Tabs/

With these comments:

<%init>
$toptabs->{‘Z’} = { title => loc(‘Statistics’), path =>
‘Statistics/index.html’ };
</%init>
<%args>
$toptabs
</%args>

and deleted local/html/Elements/Tabs.

For further reference:

http://lists.fsck.com/pipermail/rt-devel/2003-November/005101.html

-Todd

Rick Ellis Richard.Ellis@Sun.COM


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
Rick Ellis Richard.Ellis@Sun.COM