Question
I use the following code to generate a list of all recently changed topics (with
TablePlugin installed).
%TABLE{sort="on" initsort="3" initdirection="up" databgsorted="#ffffff,#edf4f9" }%
%SEARCH{".*" web="all, -TWiki, -Main, -Sandbox, -Trash" type="regex" nonoise="on" excludetopic="Web*" date="P1w/$today" format="| $web.$topic | $web | $date | $percntCALC{$IF($rev > 1, r$rev, $percntN$percnt)}$percnt | $wikiusername |" }%
The resulting list is sorted by date (reverse) except for the first item which is always out of order as shown on the screen shot.
What could be the reason for this behaviour? Thanks for your help!
Environment
--
MartinKaufmann - 17 Jul 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
try the following:
%TABLE{sort="on" initsort="3" initdirection="up" headerrows="1" databgsorted="#ffffff,#edf4f9" }%
| *topic* | *web* | *date* | *rev* | *wikiusername* |
%SEARCH{".*" web="all, -TWiki, -Main, -Sandbox, -Trash" type="regex" nonoise="on" excludetopic="Web*" date="P1w/$today" format="| $web.$topic | $web | $date | $percntCALC{$IF($rev > 1, r$rev, $percntN$percnt)}$percnt | $wikiusername |" }%
I added a headerrow and set the parameter
headerrows to
"1"
--
CarloSchulz - 17 Jul 2007
Thanks! That seems to do the trick. I also tried headerrows="0" without adding a header row - without success. Why doesn't that work as expected? I would prefer not having to include a header but I can live with your solution. Thanks again for you help.
--
MartinKaufmann - 17 Jul 2007