Filtering Tags...

32 views
Skip to first unread message

axelm

unread,
Aug 3, 2011, 7:12:42 PM8/3/11
to tiddl...@googlegroups.com
Hello All,

is it possible to have a dialog appear when you ad a tag to a tiddler that you shouldn't?

Let's say you have a tiddler where one of the tags is "Apple" and you add the tag "Orange", but you don't want that to happen (because they give a conflicting message).
It would be nice if a dialog would come up, asking you if you are sure that you want to have the tags "Apple" and "Orange" on the same tiddler.

Any ideas?

axelm


 

PMario

unread,
Aug 4, 2011, 2:48:24 AM8/4/11
to tiddl...@googlegroups.com
Hi,
If you have a look at Tobi Beers tagSearch plugin. It may be an option.

In TagSearchConfig you can define tag "categories", where only one tag of a category can be active.
eg:
fruits
  apple
  orange

So, if you have a tiddler tagged apple and you want to tag it orange there will be a dialog, if you want to remove the apple tag. This is not exactly what you described, but I think it would be worth experimenting.

Also have a look at zzConfig tiddler (first line) to activate the plugin configuration.

-m

http://tagsearch.tiddlyspot.com/#TagSearchConfig%20Action

axelm

unread,
Aug 4, 2011, 11:24:09 AM8/4/11
to tiddl...@googlegroups.com
Yes, that does what I need.
It just seems overkill with all the other features that I don't need or want.
It's the "merge" option from that plugin that does what I need.
Is there a way to just have that part of the code?

thanks,

axelm

Mark S.

unread,
Aug 4, 2011, 11:51:34 AM8/4/11
to TiddlyWiki
If you really only have apples and oranges, maybe you could use the
CheckBoxPlugin and embed your checkbox on the viewer template.

Mark

axelm

unread,
Aug 4, 2011, 2:02:25 PM8/4/11
to tiddl...@googlegroups.com
No, there is bunch of tags that should not be together on one tiddler.

I need some kind of code that looks at the tags and asks you to choose tag "Apple" or "Orange", or even just a warning that says that there is a conflict.

I just don't know how to do that.

axelm


Reply all
Reply to author
Forward
0 new messages