M) ha scritto:
yep, alltagsexcept works just fine. Thanks.
I did (via backstage > upgrade) but it didn't work. It's been a
while since I've hacked TW for something like this so I'm letting it
slide for now. But, I should upgrade. The question is when.
:(
The two macros allTags and tagChooser use the core function getTags that
actually doesn't filter the parameter excludeTag. If you wish, you can
try the following script that shoud fix the problem.
< script show >
store.getTags = function(excludeTag)
{
var results = [];
this.forEachTiddler(function(title,tiddler) {
for(var g=0; g<tiddler.tags.length; g++) {
var tag = tiddler.tags[g];
var n = true;
for(var c=0; c<results.length; c++) {
if(results[c][0] == tag) {
n = false;
results[c][1]++;
}
}
if(n && excludeTag) {
// var t = this.fetchTiddler(tag); // this is wrong
var t = this.fetchTiddler(title); // this is right
if(t && t.isTagged(excludeTag))
n = false;
}
if(n)
results.push([tag,1]);
}
});
results.sort(function(a,b) {return a[0].toLowerCase() <
b[0].toLowerCase() ? -1 : (a[0].toLowerCase() == b[0].toLowerCase() ? 0
: +1);});
return results;
};
< /script >
anyway I think that using the alltagsexcept macro is better, since it
allows you to exclude more than one tag.
--
tiziano de togni
______________________________________
http://digilander.libero.it/tizzziano/
http://tiziano.tiddlyspot.com
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
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.