Hi Mans

I have a workaround for the bug in my <$mangletags> widget -- this will 
enable you to get the gist of my idea to see if this might be what you are 
looking for (hopefully, I will fix the bug and the dummy <$setfield> will 
no longer be required.) I have used three tiddlers to explain the idea (and 
a fourth 'temp' tiddler to store variables) -- you may choose to include 
the buttons in either the 'teacher' tiddler or the 'task' tiddler for your 
application.

1. Create a tiddler with the title "Joe Bloggs" -- to represent a teacher
2. Create a tiddler with the title "Sport" -- to represent a task
3. Put this code into a third tiddler:

;Teacher:<$edit-text tiddler="temp" field="teacher"/>
;Task:<$edit-text tiddler="temp" field="task"/>

<$mangletags tiddler={{temp!!task}} add={{temp!!teacher}}>
<$setfield message="tw-mangle-tags">
<$mangletags tiddler={{temp!!teacher}} add={{temp!!task}} message=
"tw-set-field">
<$button  message="tw-mangle-tags" param={{temp!!teacher}}>Set</$button>
</$mangletags></$setfield></$mangletags>


<$mangletags tiddler={{temp!!task}} find={{temp!!teacher}}>
<$setfield message="tw-mangle-tags">
<$mangletags tiddler={{temp!!teacher}} find={{temp!!task}} message=
"tw-set-field">
<$button  message="tw-mangle-tags" param={{temp!!teacher}}>Reset</$button>
</$mangletags></$setfield></$mangletags>

4. Save the tiddler
5. Enter "Joe Bloggs" into the Teacher input box (this creates a variable 
'teacher' in the tiddler 'temp' for the widgets to read)
6. Enter "Sport" into the Task input box (this creates a variable 'task' in 
the tiddler 'temp' for the widgets to read)
5. Play with the buttons

regards


On Saturday, May 31, 2014 12:27:55 PM UTC+2, Måns wrote:
>
> Hi Matabele
>
> I was wondering...
>
> Can we create "a tagger" which would tag the current tiddler with tag name 
> you click AND tag the the "tag-tiddler" with the name of the current 
> tiddler all at once?
>
> Obviously the reversed action should be possible too.... Remove a tag from 
> the current tiddler and at the same time remove the current tiddlers title 
> (as a tag) from the "tag-tiddler" at the same time...
>
>>
>>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to