Priority: Enhancement
Current State: Closed
Released In:
Target Release: n/a
Applies To: Web Site
Component:
Branches:
I use
SiteChanges as my main way of tracking changes on Foswiki.org but was frustrated by the limited amount of info it displays for Support topics. So I did an experiment in allowing custom formatting on a per-web basis:
SiteChangesPerWebFormatting. I'd like to propose that we revise
SiteChanges something along these lines.
I'm sure there could be some improvements on my initial experiment. Here's some possibilities I can think of:
- Have the INCLUDE define the entire "Topic" cell rather than just the second part of bracketed link.
- Make the INCLUDE based on the found topic's form, and default to the topic name if there is no form.
On a related note, I wonder if we'd do better to leave
SiteChanges in it's current form (as distributed) and create a local version
specifically tailored to the needs of Foswiki.org.
--
LynnwoodBrown
Thats much better.
Does this affect the performance?
--
OliverKrueger - 17 Jun 2009
That's a good question that I was wondering also. I tried refreshing both pages and could not see any difference in load time. Not very scientific, i admit...
--
LynnwoodBrown - 17 Jun 2009
I know
ArthurClemens implemented this change into
SiteChanges at some point but I see now that the overall format for that topic has been changed more recently and these changes removed. Since I still believe this is a useful enhancement for tracking changes on foswiki.org, I may try re-implementing based on new version of SiteChanges and then see about moving it somewhere other than
System.SiteChanges
as this modification is somewhat site-specific and should not replace the distributed version of SiteChanges.
--
LynnwoodBrown - 21 Sep 2009
implemented a while ago, so closing.
the idea is to define a section for each web of the formatted text for the "topic" column, and include that section (the web's name) in the
SEARCH
:
<!--
INCLUDEs for each web:
%STARTSECTION{"Support"}%%FORMFIELD{"TopicTitle" topic="%THEWEB%.%THETOPIC%" format="$value" alttext="%THETOPIC%" default="%THETOPIC%"}% <span class='foswikiSmall foswikiGrayText'>%FORMFIELD{"Status" topic="%THEWEB%.%THETOPIC%"}%</span>%ENDSECTION{"Support"}%
%STARTSECTION{"Development"}%%FORMFIELD{"TopicSummary" topic="%THEWEB%.%THETOPIC%" format="$value" alttext="%THETOPIC%" default="%THETOPIC%"}% <span class='foswikiSmall foswikiGrayText'>%FORMFIELD{"CurrentState" topic="%THEWEB%.%THETOPIC%"}%</span>%ENDSECTION{"Development"}%
%STARTSECTION{"Tasks"}%%FORMFIELD{"Summary" topic="%THEWEB%.%THETOPIC%" format="%THETOPIC%: $value" alttext="%THETOPIC%" default="%THETOPIC%"}%%FORMFIELD{"Component" topic="%THEWEB%.%THETOPIC%" format=" (<nop>$value)"}% <span class='foswikiSmall foswikiGrayText'>%FORMFIELD{"CurrentState" topic="%THEWEB%.%THETOPIC%"}%</span>%ENDSECTION{"Tasks"}%
%STARTSECTION{"Community"}%%THETOPIC%%ENDSECTION{"Community"}%
-->
%SEARCH{
"info.author!='WikiGnome' AND info.date >= d2n('%URLPARAM{"since" default="%CALC{$FORMATTIME($EVAL($TIME()-24*3600), $year-$month-$dayT$hour:$minute:$second)}%"}%')"
type="query"
nosearch="on"
nototal="on"
limit="%IF{"defined limit" then="%URLPARAM{"limit" encode="url" default="%limit%"}%" else="25"}%"
web="%IF{"defined web" then="%URLPARAM{"web" encode="url" default="%web%"}%" else="all"}%"
excludetopic="WebStatistics"
reverse="on"
order="modified"
format="| $date | <nop>$web | [[%SCRIPTURLPATH{"view"}%/$web/$topic#foo_$rev][$percntINCLUDE{\"System.FoswikiSiteChanges\" section=\"$web\" warn=\"$topic\" THEWEB=\"$web\" THETOPIC=\"$topic\"}$percnt]] | [[%MAINWEB%.$wikiname][$wikiname]] | [[%SCRIPTURLPATH{"rdiff"}%/$web/$topic#_foo=$rev][diff]], %BR% [[%SCRIPTURLPATH{"rdiff"}%/$web/$topic?type=last&render=sequential&context=9000&_foo=$rev#diff001][last change]] | "
}%
--
WillNorris - 22 Mar 2010