Hi Mans
Sorry, it had slipped my mind that I found a careless mistake in my
<$mangletags> widget - this has been fixed and I am currently trying to
upload the revised widget (the internet here has crawled to a stop.) This
does not fix the bug and the dummy <$setfield> is still required.)
I have posted the demo for you on the site, and I suggest updating your
<$mangletags> widget before trying this at home :-)
regards
On Saturday, May 31, 2014 7:08:57 PM UTC+2, Matabele wrote:
>
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.