I did not notice how old this post is. Some more information:
1. I have installed the sorting plugin and it works fine with static tables
(tables coded directly into a tiddler).
2. It does not work with this script: I have tried inserting the value at
A, B, C and D in the script below.The result is either an error, or the
"sortable" and "k" values show up as columns.
! Current by priority
<script
>>>>> A : var out="|sortable|k \n";
var fmt='|[[%0]]|%1|%2|%3|%4|%5|\n';
var tag='current';
var otcm='outcome';
var itnt = 'intent';
var nxt = 'next';
var pr = 'priority';
var lstChg = 'last modified';
var
tids=store.sortTiddlers(store.getTaggedTiddlers(tag),'modified').reverse();
>>>>> B : out +="|sortable|k \n";
out+= "|!Item|!Priority|!" + otcm + "|!" + itnt + "|!" + nxt + "|!Last
Updated|\n";
for (var i=0; i<tids.length; i++) {
var t=tids[i].title;
var o=store.getTiddlerSlice(t,otcm);
var e=store.getTiddlerSlice(t,itnt);
var n=store.getTiddlerSlice(t,nxt);
var p=store.getTiddlerSlice(t,pr);
var d = tids[i].modified;
out += fmt.format([t,p,o,e,n,d]);
}
>>>>> C : out +t="|sortable|k \n";
out += "|" + tag + " Dashboard|c";
return out;
>>>>> D : return "|sortable|k \n"+out;
</script>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/tiddlywiki/-/AimGJ3UNbjoJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.