TagCloudPlugin problems

9 views
Skip to first unread message

Dave Parker

unread,
Nov 25, 2010, 4:24:52 PM11/25/10
to TiddlyWiki
Hi,
I'm not sure if I'm misunderstanding the examples at tiddlytools

this works:
<<cloud action:popup >> (this diplays all the tags)


but this doesn't do anything:
<<cloud action:popup =today>>

What I was expecting was to get a cloud of all the tags that occur in
tiddlers that also have the tag "today"

E.g.
tiddler "today" has children tiddlers "testsA" and "testsB" (i.e. they
are both tagged with "today")
tiddler "testsA" is tagged with "Dx1" and "Dx2"
tiddler "testsB" is tagged with "Dx2" and "Dx3"

therefore the cloud macro above should display all three tags and
"Dx2" should be bigger. Unfortunately nothing is displayed. I tried
this on TW version 2.3 and 2.6.1


Anything obvious I'm doing wrong?

Dave Parker

unread,
Nov 28, 2010, 1:16:52 AM11/28/10
to TiddlyWiki
I was misunderstanding it after all. You'd have to have a main
tiddler called "Tests" tagged with all the Dx1, Dx2, Dx3 etc. Then
when all the other tiddlers that variously get tagged with some of
those tags, you can see the cloud that displays the relative frequency
of all the tests with <<cloud =[[Tests]]>>

Dave Parker

unread,
Nov 28, 2010, 1:32:59 AM11/28/10
to TiddlyWiki
Now that I can make a tag cloud that reflects checkbox states across
various tiddlers, how would I go about resetting all those checkboxes
back to an empty state?

In CheckboxPluginInfo (tiddlytools.com) it says this:
You can set the default refresh handling for all checkboxes in your
document by using the following javascript syntax either in a
systemConfig plugin, or as an inline script. (Substitute true/false
values as desired):
config.checkbox.refresh = { tagged:true, tagging:true,
container:true };

but I don't know what that's talking about. I made a tiddler with
that in it and put systemConfig on it and reloaded, both with all true
and all false, but nothing happened to the checkbox states.


Does anyone have any experience with this? I asked a similar question
in 2007, but the script that helped is no longer there at tiddlytools.

Thanks,
Dave

Måns

unread,
Nov 28, 2010, 3:44:36 PM11/28/10
to TiddlyWiki
Hi Dave
>..how would I go about resetting all those checkboxes back to an empty state?

I guess You want a script that removes a specified tag from all
tiddlers tagged with that tag??
Here's one:
<script label="Reset">
var tag="SomeTag";
var tids=store.getTaggedTiddlers(tag);
store.suspendNotifications();
for (var i=0; i<tids.length; i++) { var t=tids[i];
store.setTiddlerTag(t.title,false,tag);
store.saveTiddler
(t.title,t.title,t.text,t.modifier,t.modified,t.tags,t.fields);
}
store.resumeNotifications();
</script>
(Needs InlineJavascriptPlugin - tiddlytools.com)
Cheers Måns Mårtensson

Dave Parker

unread,
Nov 28, 2010, 4:20:01 PM11/28/10
to TiddlyWiki
Thank you Mans, that's perfect!
Reply all
Reply to author
Forward
0 new messages