[tw] Re: CheckboxPlugin feature request for multiple tags

2013-02-24 Thread Dave
for completion, this thread is answered here:

https://groups.google.com/forum/#!topic/TiddlyWiki/CxmR35260SE

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: CheckboxPlugin feature request for multiple tags

2011-04-02 Thread Dave Parker
Just to let you know Mans, I finally got around to working on this
project again and this works great.  I'm using it like this

tiddler DailyChecklist##toggleall with:  [[Cardio Essentials]]
[[Bone Support Formula]] has Dx of high blood pressure

and it can tag the tiddler with both tags at once (for use with cloud
tag plugin.  That way you can in this case check off multiple signs
and symptoms, each one pointing to various multiple tags, (e.g.
symptom A: tag 1  3, symptom B: tags 2,3  4 etc) and then see in the
cloud tag tiddler which tags (in this case nutritional suggestions)
should be given greater significance.

I don't know if this sort of quick and dirty analysis would be helpful
in non-healthcare type situations, but I'd certainly think it might.

On Feb 6, 10:34 pm, Dave Parker cedar...@telus.net wrote:
 Thanks Mans, I'd never heard of that one - I'll give it a try.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: CheckboxPlugin feature request for multiple tags

2011-04-02 Thread Dave Parker
woops, looks like I was a bit premature.

It turns out (and it makes sense) that you can't use this via
transclusion.  That is, the tiddler through which you're viewing the
original question (which has the checkbox to multiple tags) is the one
getting tagged, not the original one.

Now that I've bumped up against this, I see that's what you were
talking about in your last post (it seems I have to learn the hard
way :-)


Eric, how about this?
tiddler DailyChecklist##toggleall with:  [[tiddler to be tagged]]
[[tag1]] [[tag2]]

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: CheckboxPlugin feature request for multiple tags

2011-04-02 Thread Dave Parker
I tried to fix it on my own, changing from this:


!toggleall
htmlnowikiform style=display:inline
input type=checkbox name=c onclick=
var 
tid=story.findContainingTiddler(this).getAttribute('tiddler');
var tags='$1'.readBracketedList();
store.suspendNotifications();
for (var t=0; ttags.length; t++)
store.setTiddlerTag(tid,this.checked,tags[t]);
store.resumeNotifications();
story.refreshTiddler(tid,null,true);

/form/htmltiddler {{
var
t=store.getTiddler(story.findContainingTiddler(place).getAttribute('tiddler'));
var tags='$1'.readBracketedList();
place.lastChild.getElementsByTagName('form')
[0].c.checked=t.tags.containsAll(tags);
'';}}
!end toggleall


to this (please don't laugh):



!toggleall
htmlnowikiform style=display:inline
input type=checkbox name=c onclick=
var 
tid=story.findContainingTiddler('$1').getAttribute('tiddler');
var tags='$2'.readBracketedList();
store.suspendNotifications();
for (var t=1; ttags.length; t++)
store.setTiddlerTag(tid,tid.checked,tags[t]);
store.resumeNotifications();
story.refreshTiddler(tid,null,true);

/form/htmltiddler {{
var
t=store.getTiddler(story.findContainingTiddler(place).getAttribute('tiddler'));
var tags='$2'.readBracketedList();
place.lastChild.getElementsByTagName('form')
[0].c.checked=t.tags.containsAll(tags);
'';}}
!end toggleall

Strangely enough, even with all my screwing around with the code, the
toggle all button in the original one kept on working...

I give up now.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: CheckboxPlugin feature request for multiple tags

2011-04-02 Thread Dave Parker
disregard the strangely enough comment - I figured out why that
happened. (yes, I should keep my day job)

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: CheckboxPlugin feature request for multiple tags

2011-02-06 Thread Måns
Hi Dave

Maybe Eric's DailyCheckList http://tiddlytools.com/#DailyChecklist could 
be modified to do what you want?
To me it seems likely that you could make several checklists for groups of 
tags and either toggle tags individually or toggle all from one group (with 
a checkbox) or untoggle all from a group (with a button) ... ??
Will have to investigate further..

Cheers Måns Mårtensson

My only problem is that some questions point to multiple 
 possibilities.  Currently for those questions I have to have something 
 like this: 

 [_(thisTiddler|SuggestionA)][_(thisTiddler|SuggestionB)] has symptom x 

 which means I have to separately check off two boxes (sometimes it 
 might be 3 or 4) to get both tags on the tiddler. 


 Would it be possible to add in that capability, something like 

 [_(tiddler name|SuggestionA, Suggestion B, tag xyz)] has high blood 
 pressure 

 I didn't see that in the documentation and I did try a couple ways but 
 it always ended up as one big tag.  Hopefully this would not be a 
 major coding difficulty, and possibly useful for others. 

 Thanks, 
 Dave

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: CheckboxPlugin feature request for multiple tags

2011-02-06 Thread Måns
Hi Dave
Eric's DailyCheckList http://tiddlytools.com/#DailyChecklist can be used 
as is!!
Write:
tiddler DailyChecklist##toggletag with: x x
tiddler DailyChecklist##toggletag with: y y
tiddler DailyChecklist##toggletag with: z z
tiddler DailyCheckList##toggleall with: x y z toggleall x y z
tiddler DailyCheckList##resetall with: reset all items x y zresetall 
x y z

Put it in a tiddler and put the tiddler in a toolbar 
Cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: CheckboxPlugin feature request for multiple tags

2011-02-06 Thread Måns
To make it look like Eric's DailyChecklist example you write:

tiddler DailyChecklist##toggletag with: x x
tiddler DailyChecklist##toggletag with: y y
tiddler DailyChecklist##toggletag with: z z

tiddler DailyChecklist##toggleall with: x y z toggleall x y z
tiddler DailyChecklist##resetall with: reset all xyz x y z

Cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: CheckboxPlugin feature request for multiple tags

2011-02-06 Thread Måns
@Eric
How do I change the 
DailyChecklist##toggletag
DailyChecklist##toggleall
and
DailyChecklist##resetall
to use an extra parameter for setting/removing tags to/from another tiddler? 
(like CheckBoxToggleTag does?)
This way the checklist could be very usefull in a lot of different 
contexts..

Cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: CheckboxPlugin feature request for multiple tags

2011-02-06 Thread Dave Parker
Thanks Mans, I'd never heard of that one - I'll give it a try.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: CheckboxPlugin feature request for multiple tags

2011-02-05 Thread TonyM
Whilst awaiting a possible enhancement I use the CommentPlugin as it can 
apply multiple tags at the same time it adds the comment.

Perhaps you can direct the tagging to another tiddler by the users name ?

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.