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.comContent-Type: text/plain; charset=“us-ascii”
Another clean way to do it would be:
/local/html/Callbacks/Statistics/Elements/Tabs/DefaultAnd 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 StatisticsAlso, 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